v1
latestOpenAPI 3.0.02026-07-26152942.8 KBtext_to_speech
Convert text to speech
Convert text to speech using the specified voice
post/v1/text-to-speech/{voice_id}
Path parameters
voice_idstring required
Request body
Response
Returns either binary audio or JSON with phoneme data based on include_phonemes parameter
Example response
{
"audio_base64": "UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhY...",
"phonemes": {
"symbols": [
"",
"h",
"ɐ",
"ɡ",
"ʌ",
""
],
"start_times_seconds": [
0,
0.092,
0.197,
0.255,
0.29,
0.58
],
"durations_seconds": [
0.092,
0.104,
0.058,
0.034,
0.29,
0.162
]
}
}