Check out our upcoming events and meetups! View events →
Retrieve a list of available voices from one or all TTS providers. When provider is specified, returns voices for that provider only. Otherwise, returns voices from all providers.
Some providers (ElevenLabs, Resemble) require an API key to list voices.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.textToSpeech.listVoices();
console.log(response.voices);{
"voices": [
{
"provider": "<string>",
"name": "<string>",
"voice_id": "<string>",
"language": "<string>",
"gender": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter voices by provider. If omitted, voices from all providers are returned.
aws, telnyx, azure, elevenlabs, minimax, rime, resemble, xai API key for providers that require one to list voices (e.g. ElevenLabs).
List of available voices.
List of available voices.
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.textToSpeech.listVoices();
console.log(response.voices);{
"voices": [
{
"provider": "<string>",
"name": "<string>",
"voice_id": "<string>",
"language": "<string>",
"gender": "<string>"
}
]
}