Streaming Speech-to-Text
Handshake
GET
Headers
Authentication
Query parameters
sample_rate
The sample rate of the streamed audio
word_boost
Add up to 2500 characters of custom vocabulary. The parameter value must be a JSON encoded array of strings. The JSON must be URL encoded like other query string parameters.
encoding
The encoding of the audio data
Allowed values: pcm_s16lepcm_mulaw
token
Authenticate using a generated temporary token
disable_partial_transcripts
Set to true to not receive partial transcripts. Defaults to false.
enable_extra_session_information
Set to true to receive the SessionInformation message before the session ends. Defaults to false.
Send
abc
Audio DatastringOR
Terminate Sessionobject
OR
Force End Utteranceobject
OR
Configure End Utterance Silence Thresholdobject
Receive
Session Beginsobject
OR
Partial Transcriptobject
OR
Final Transcriptobject
OR
Session Informationobject
OR
Session Terminatedobject
OR
Realtime Errorobject