Endpoint
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to convert to speech |
voice_id | string | No | Voice ID (default: Rachel) |
output_format | string | No | Audio format (default: mp3_44100_128) |
language_code | string | No | Language for multilingual voices |
List voices
Get available voices:Popular voices
| Voice | ID | Description |
|---|---|---|
| Rachel | EXAVITQu4vr4xnSDxMaL | Professional, clear (default) |
| Adam | 21m00Tcm4TlvDq8ikWAM | Deep, authoritative |
| Antoni | ErXwobaYiN019PkySvjV | Well-rounded, calm |
| Josh | TxGEqnHWrfWFTfGW9XjX | Deep, narrative |
Streaming
For lower latency, stream audio as it’s generated:Endpoint
Output formats
| Format | Description |
|---|---|
mp3_44100_128 | MP3, 44.1kHz, 128kbps (default) |
mp3_44100_192 | MP3, 44.1kHz, 192kbps |
pcm_16000 | PCM, 16kHz |
pcm_44100 | PCM, 44.1kHz |
Examples
Narrate a document summary
TypeScript
Multilingual
TypeScript
Pricing: 1.50.