When streaming audio to Gladia API, you can stream it either as binary frames or as JSON messages containing a base64-encoded chunk.Documentation Index
Fetch the complete documentation index at: https://docs.gladia.io/llms.txt
Use this file to discover all available pages before exploring further.
Send audio chunks
There are two ways to stream audio:- As binary WebSocket frames:
- As JSON, base64-encoding the audio chunk
Tips
- Keep chunks reasonably sized (≃ 100ms) for low latency.
- Make sure your chunks are contiguous audio frames with the same format as configured during session initiation.
- On recoverable disconnects, reconnect using the same
urlto continue streaming.