Learn how to transcribe live audio streams
sample_rate
parameterencoding
parameter to aai.AudioEncoding.pcm_mulaw
:
Encoding | SDK Parameter | Description |
---|---|---|
PCM16 (Default) | aai.AudioEncoding.pcm_s16le | PCM signed 16-bit little-endian. |
Mu-law | aai.AudioEncoding.pcm_mulaw | PCM Mu-law. |
word_boost
parameter:
word_boost
parameter is a JSON array that is URL encoded. See this code example.aai.RealtimeTranscriber.create_temporary_token()
.
Use the expires_in
parameter to specify how long the token should be valid for, in seconds.token
parameter when initializing the streaming transcriber.force_end_utterance()
:
end_utterance_silence_threshold
parameter when initializing the streaming transcriber.
After the session has started, you can change the threshold by calling configure_end_utterance_silence_threshold()
.
disable_partial_transcripts
parameter to True
.
RealtimeSessionInformation
message right before receiving the session termination message.
To enable it, define a callback function to handle the event and cofigure the on_extra_session_information
parameter.