List available text to speech voices
GET/text-to-speech/voices
Returns a list of voices that can be used with the text to speech commands.
Request
Query Parameters
provider string
Possible values: [aws
, azure
, elevenlabs
, telnyx
]
Filter voices by provider
elevenlabs_api_key_ref string
Reference to your ElevenLabs API key stored in the Telnyx Portal
Responses
200: Successful response with list of available voices
- application/json
401: Unauthorized
Request samples
curl -L 'https://api.telnyx.com/v2/text-to-speech/voices' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"voices": [
{
"id": "string",
"name": "string",
"provider": "string",
"label": "string",
"accent": "string",
"gender": "string",
"age": "string",
"language": "string"
}
]
}