Voices
The following requests are used to list and query various voice related attributes that will be used as parameters for the inference requests.
Get Voices
Returns a list of all voices available in the workspace associated with the client credentials provided. The name field is a unique identifier for each voice.
Method: GET
Endpoint: https://api.revoiceit.com/voices
Query Parameters:
Field | Type | Description | Required |
model | string | Can be specified to retrieve a list of voices specific to this model. If omitted, the endpoint returns all voices available in the workspace. Model names can be obtained from the Get Models endpoint. | Optional |
Response:
[
{
"name": string,
"age": string,
"timbre": string,
"gender": string
}
]
Returned HTTP Codes
HTTP Code | Description |
200 | Success |
404 | Voices not found |
500 | Internal server error |
Get Models
Returns a list of available models in the workspace associated with the client credentials provided. The model attribute is a unique identifier for each model.
Method: GET
Endpoint: https://api.revoiceit.com/models
Response:
[
{
"model": string,
"description": string,
"defaultOutputBitrate": number,
"defaultOutputSamplingRate": number
}
]
Returned HTTP Codes
HTTP Code | Description |
200 | Success |
404 | Models not found |
500 | Internal server error |
Get Voice Styles
Returns a list of voice styles available with a specific model provided. The model attribute obtained in the Get Models request should be included in the url for this request. The style attribute is a unique identifier for the style.
Method: GET
Endpoint: https://api.revoiceit.com/models/{model}/styles
Response:
[
{
"style": string,
"supportedGenders": array<string>,
"description": string
}
]
Returned HTTP Codes
HTTP Code | Description |
200 | Success |
404 | Styles not found |
500 | Internal server error |