Skip to main content

Get Uploaded Voices

Overview

This endpoint allows you to get all uploaded voices

Request

--request POST 'https://modelslab.com/api/v6/voice/voice_list' \

Send a POST request to https://modelslab.com/api/v6/voice/voice_list endpoint to return all uploaded voices.

Attributes

ParameterDescription
keyYour API Key used for request authorization
typeThere are two types of voices, trained and manual. The default is manual.

Example

Body

Body Raw
{
"key": ""
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": ""
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://modelslab.com/api/v6/voice/voice_list", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

Example Response
{
"status": "success",
"voices": [
{
"voice_id": "actor",
"name": "Actor",
"language": "english"
},
{
"voice_id": "tom_hank",
"name": "Tom Hank",
"language": "english"
},
{
"voice_id": "jack_sparrow",
"name": "Jack Sparrow",
"language": "english"
}

]
}