wss://api.async.com/speech_to_text/stream?api_key=sk_your_token&model_id=async_asr_v1.0| Parameter | Required | Description |
|---|---|---|
| api_key | Yes | Your API key (sk_...) |
| model_id | No | Model to use. Default: async_asr_v1.0 |
| language | No | Language hint (ISO 639-1 code) |
π‘ See Speech to Text for detailed parameter descriptions.
{"audio": "<base64-encoded PCM16 chunk>"}{"final": true}{
"type": "interim",
"text": "Hello how are you doing",
"delta": "doing"
}text β cumulative transcript so far (replace your UI text with this)delta β only the new piece since the last message (append to your UI){
"type": "done",
"text": "Hello, how are you doing today?"
}{"final": true}. Contains the finalized, punctuated transcript.{
"type": "error",
"error": "Description of what went wrong"
}interim messages as it recognizes speech. These are cumulative (the text field always contains the full transcript so far).{"final": true}, the server responds with a done message containing the finalized transcript, then closes the connection.