Skip to main content
Convert a chat message to speech and stream the audio. Audio is generated via our TTS provider on first request and cached automatically; subsequent requests reuse the cached audio without regenerating it.
The response is a WAV stream (RIFF container, IEEE float32 PCM, mono, 44.1 kHz). Standard audio players — browser <audio>, Web Audio decodeAudioData, ffplay, afplay, expo-av — play it directly with no custom decoding.

Request

string
required
Bearer token obtained from the authenticate endpoint.
string
required
ID of the chat message to synthesize. The message must belong to your organization.

Response

Returns a streaming audio/wav body. During the first request for a message the audio is streamed live; the WAV header’s size fields are written as 0xFFFFFFFF (read-until-EOF). Cached responses carry real sizes, so seek and duration work from the first byte.

Playback

Browser (Web Audio API)

Browser (<audio> element)

React Native (Expo AV)