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
url
to continue streaming.