Legs
Synthesize speech and hold it for a later commit
Stages a speculative reply. The audio is synthesized and buffered in memory but not played, so that committing it starts playback with no synthesis delay. Intended for the turn-taking loop of a voice agent: start a draft reply on the eager_end_of_turn stt.turn event, then commit it on end_of_turn or discard it on turn_resumed. A tts.staged event reports when the audio is ready; synthesis failures are reported on tts.error. Staged utterances are dropped after TTS_PREFLIGHT_TTL or when the leg ends, and at most TTS_PREFLIGHT_MAX_PER_LEG may be staged on one leg at a time. Preflight is leg-scoped; use POST /rooms/{id}/tts for room announcements.
post/legs/{id}/tts/preflight
Request body
Response
TTS staged