Skip to content
alpharouter

Docs

Speech synthesis

Turn text into speech, for guidance prompts and reading out notifications.

Calling

POST /audio/speech with input and voice. The response is an audio binary.

FieldTypeNote
inputstringText to speak
voicestringModel dependent
response_formatstringmp3 | wav | pcm
speednumber0.5–2.0

Streaming

Set stream_format to send audio as it is produced, reducing perceived latency on long passages.

Delivery control

Adjust pace with speed. Punctuation maps directly onto pauses, so it is better to edit the source text.