import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.textToSpeech.listVoices();
console.log(response.voices);{
"voices": [
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"label": "<string>",
"accent": "<string>",
"gender": "<string>",
"age": "<string>",
"language": "<string>"
}
]
}Returns a list of voices that can be used with the text to speech commands.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.textToSpeech.listVoices();
console.log(response.voices);{
"voices": [
{
"id": "<string>",
"name": "<string>",
"provider": "<string>",
"label": "<string>",
"accent": "<string>",
"gender": "<string>",
"age": "<string>",
"language": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter voices by provider
aws, azure, elevenlabs, telnyx Reference to your ElevenLabs API key stored in the Telnyx Portal
Was this page helpful?