- Connect — authenticate via query parameters
- Send binary PCM frames — push raw audio as it is captured
- Send
close_stream— signal that you are done sending audio - Receive
result— the server returns the final transcript and closes the connection
Connection
Connect to the following URL, passing authentication and stream parameters as query parameters:Connection lifecycle
Example
Getting the result
Once you sendclose_stream, the server finishes processing all buffered audio and then delivers a single result message containing the complete transcript. Finalization typically completes within a few seconds, and can take up to about a minute when a large amount of audio is still being processed. The connection is closed by the server immediately after.
If you disconnect or cancel after transcription has started, you are still billed for the audio you sent (15-second minimum applies).