Skip to main content
GET
/
text-to-speech
/
voices
JavaScript
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

provider
enum<string>

Filter voices by provider. If omitted, voices from all providers are returned.

Available options:
aws,
telnyx,
azure,
elevenlabs,
minimax,
rime,
resemble
api_key
string

API key for providers that require one to list voices (e.g. ElevenLabs).

Response

List of available voices.

List of available voices.

voices
object[]