Converting Speech to Text with Speech Recognition
This lesson explains speech recognition, or speech to text (STT), which converts spoken language into text. It powers transcription, captions, voice commands and the input side of voice assistants.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how acoustic and language models recognize speech.
- Distinguish real-time, fast and batch transcription.
- Identify recognition features such as speaker diarization and phrase lists.
How speech recognition works
Recognition traditionally uses two models. An acoustic model converts the audio signal into phonemes, the distinct sounds of a language. A language model maps sequences of phonemes to the most likely words and sentences, using context to choose between words that sound alike (their and there). Modern systems often use a single neural network trained end to end, but the two ideas remain useful for understanding errors: noisy audio challenges the acoustic side, and unusual vocabulary challenges the language side.
The following diagram shows the two stages of recognition and what challenges each.

Recognition modes
Azure Speech offers three ways to transcribe. Real-time recognition streams audio from a microphone or stream and returns text as the person speaks, with interim results, which suits live captions and voice commands. Fast transcription transcribes a recorded file synchronously and quickly. Batch transcription processes large numbers of stored recordings asynchronously, which suits call-centre archives.
Features
Useful features include automatic punctuation and formatting of numbers and dates, word-level timestamps, speaker diarization (labelling which speaker said each phrase), language identification, profanity masking, phrase lists that boost recognition of specific words such as product names at run time, and custom speech models trained with domain text and audio for consistently difficult vocabulary or acoustic conditions. Transcription models such as gpt-4o-mini-transcribe and audio-capable multimodal models also convert speech to text.
Improve the transcript
Choosing a recognition mode
The recognition mode follows from when the text is needed and where the audio comes from. Live audio that must be shown or acted on while the person is speaking needs real-time recognition. A recording that someone is waiting for suits fast transcription, and large archives that can be processed overnight suit batch transcription. The following table gives examples.
| Scenario | Mode |
|---|---|
| Live captions for a webinar | Real-time recognition |
| Voice commands in an application | Real-time recognition |
| Transcribing a recorded interview for a journalist | Fast transcription |
| Transcribing a year of recorded support calls | Batch transcription |
Accuracy problems usually point to a specific fix. Product names or jargon that are misrecognized can be added as a phrase list, and consistently difficult audio, such as a noisy factory floor or strong regional accents, may justify a custom speech model.
Choose the recognition mode
Choosing recognition features
A clinic records doctor-patient consultations and needs a written record that shows who said what, including the names of medicines that general recognition often gets wrong.
Showing who said what requires speaker diarization; improving medicine names requires a phrase list or, for a large vocabulary, a custom speech model.
Speech synthesis is the wrong direction, and a larger language model applied after transcription cannot reliably recover words the recognizer did not capture.
What does speaker diarization do?
Show answer
It labels which speaker said each part of the transcript.
Exam Tips
Remember for the exam
- Acoustic models map audio to phonemes; language models map phonemes to words.
- Real-time for live audio, fast transcription for single files, batch for large archives.
- Speaker diarization labels who spoke; phrase lists and custom speech improve domain vocabulary.