The Speech SDK class used for speech to text. It is created from a SpeechConfig plus an AudioConfig (stream, WAV file or microphone) and returns transcriptions either once or continuously.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains SpeechRecognizer in context, with comparison tables and the common traps.
Terms in this definition
- Speech SDK
The Azure Speech client library, installed in Python as azure-cognitiveservices-speech and imported as speechsdk, providing SpeechSynthesizer, SpeechRecognizer, SpeechConfig and classes for audio configuration.
- Speech recognition
Turning spoken audio into text, for example call transcripts or captions.
- AudioConfig
Object in the Speech SDK specifying where audio comes from or goes to, for example FromStreamInput, FromWavFileInput or FromDefaultMicrophoneInput.
- STREAM
Placed before a source in a query, as in
STREAM read_files(...), this keyword tells SQL to process it as a stream, which is how streaming tables get loaded bit by bit. - RETURNS
States what a function gives back, as a type or a table, inside
CREATE FUNCTION. SQL functions can leave it out and have the type worked out from their body. - Once flow
A flow that executes a single time and repeats only if the pipeline is fully refreshed. It's a common choice for a first full load ahead of a change feed, and that refresh becomes dangerous once the original files no longer exist.
Related terms
- recognize_once()
Single-shot recognition call on the Speech SDK's SpeechRecognizer. It returns one utterance, stopping at silence or a time limit of around 15 to 30 seconds, which makes it good for short commands.
- start_continuous_recognition()
Suits long audio with many utterances: this SpeechRecognizer method raises recognizing, recognized and canceled events with results, carrying on until you call stop_continuous_recognition().
- start_keyword_recognition()
Method of SpeechRecognizer that uses a keyword model to listen on the device for a wake word, after which audio starts streaming to the service. It is not meant for general transcription.