Skip to content

Speech Recognition With AI

How automatic speech recognition works, choosing a model, and measuring accuracy with word error rate.

Editorial team 2 min read

Automatic speech recognition (ASR) converts spoken audio into text. Modern systems use deep learning and handle accents and noise far better than older approaches.

How It Works

Audio is converted into a representation such as a spectrogram, which shows which frequencies are present over time. A neural network — often an encoder–decoder transformer — maps that representation to text. Open models such as Whisper were trained on hundreds of thousands of hours of audio.

Choosing a Model

  • Languages and accents your users speak.
  • Accuracy versus speed: larger models are more accurate but slower.
  • Streaming or batch: live captions need low latency.
  • Deployment: cloud API or on-device/self-hosted for privacy.
  • Extras: timestamps, punctuation, speaker diarisation (who spoke when).

Measuring Accuracy

Word error rate (WER) counts substitutions, deletions and insertions relative to a correct transcript. Lower is better. Normalise text (case, punctuation, numbers) before comparing, and test on your own audio.

Improving Results

  • Better audio at the source: closer microphones, less background noise.
  • Trim long silences, where some models hallucinate text.
  • Provide the language if known, and vocabulary hints where supported.

Risks

Accuracy varies across accents, languages and speech impairments, so check performance for all the people who will use the system. Recordings are personal data: get consent and handle them securely.

More in Generative AI

All Generative AI guides →
Generative AI Guide · 2 min

Prompt Engineering Fundamentals

The building blocks of a good prompt — context, task, constraints and format — with before-and-after examples.

Generative AI 2 min read 24 Jul 2026

Generative AI Guide · 2 min

Few-Shot Prompting With Examples

Showing a model a few examples of the input and output you want is often clearer than describing it. How to choose good examples.

Generative AI 2 min read 23 Jul 2026

Generative AI Guide · 2 min

Getting Structured Output From LLMs

How to get JSON and other machine-readable output reliably from a language model, and how to validate it.

Generative AI 2 min read 22 Jul 2026

Generative AI Guide · 2 min

Why Language Models Hallucinate

What hallucination is, why it happens, and practical ways to reduce and catch it.

Generative AI 2 min read 21 Jul 2026