Get All Voices
GET
/v1/voicesRetrieve a list of all available voices.
Request History
Log in to see full request history
| TIME | STATUS | USER AGENT |
|---|---|---|
| Make a request to see history. | ||
0 Requests This Month
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| scope | string | Filter voices by scope. Options: all, public, private |
| language | string | Filter by language code (e.g., en-US, es-ES) |
| gender | string | Filter by gender. Options: male, female, neutral |
| page | integer | Page number for pagination (default: 1) |
| limit | integer | Number of items per page (default: 20) |
Request Example
shell
curl -X GET https://api.konpro.ai/v1/voices \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json"Response
Voices Array
voices: An array containing voice details.
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier of the voice |
| name | string | Name of the voice |
| language | string | Language code of the voice (e.g., en-US) |
| gender | string | Gender of the voice: male, female, or neutral |
| preview_url | string | URL to the voice preview audio |
| properties | object | Voice properties object containing accent, age, and style |
Pagination Object
pagination: Pagination information for the response.
| Field | Type | Description |
|---|---|---|
| page | integer | Current page number |
| limit | integer | Number of items per page |
| total | integer | Total number of voices |
| total_pages | integer | Total number of pages |
Sample Successful Response
json
{
"voices": [
{
"id": "voice-123",
"name": "Jessica",
"language": "en-US",
"gender": "female",
"preview_url": "https://...",
"properties": {
"accent": "American",
"age": "adult",
"style": "conversational"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 50,
"total_pages": 3
}
}Notes
- This endpoint requires authentication using the
x-api-keyheader. - Use the
scopeparameter to filter voices by visibility (all, public, private). - Use the
languageparameter to filter by language code. - Use the
genderparameter to filter by gender (male, female, neutral). - Results are paginated. Use
pageandlimitparameters to navigate through results. - For error descriptions, see Error Responses.