Ultralytics YOLO27:
License YOLO
Back to Ultralytics Glossary

Speech Recognition

Speech recognition, or automatic speech recognition (ASR), converts spoken audio into text with neural models. It is a synonym of speech-to-text.

Speech recognition, also called automatic speech recognition (ASR) or speech-to-text (STT), is the conversion of spoken language into written text by a computer. A recognizer turns an audio waveform into a sequence of acoustic features, maps those features to characters or word pieces with a neural network, and outputs a transcript. It is the input layer of virtual assistants, live captions, dictation, and call analytics, and its transcripts feed natural language processing (NLP) systems, such as named entity recognition, that search, summarize, or act on what was said. Models trained on very large speech collections, such as OpenAI's Whisper, trained on 680,000 hours of multilingual audio, now transcribe many accents, noisy recordings, and dozens of languages without per-speaker training.

From Templates to Neural Networks#

Bell Labs' Audrey system recognized spoken digits from a single speaker in 1952, and IBM's Shoebox understood 16 English words, including the digits 0 to 9, at the 1962 Seattle World's Fair. From the 1980s, statistical recognizers built on hidden Markov models (HMMs) dominated: Gaussian mixture models scored how well each short audio frame matched each speech sound, the HMM tracked how sounds follow one another, a pronunciation dictionary mapped sounds to words, and an n-gram language model ranked word sequences. Around 2012, research groups at the University of Toronto, Microsoft, Google, and IBM showed that deep neural networks scored the frames more accurately than Gaussian mixture models across several benchmarks, and the same push for better acoustic models produced general tools such as the leaky ReLU activation. End-to-end models followed, replacing the separate components with one network trained directly from audio to text.

How Speech Recognition Works#

Audio is resampled, to 16 kHz for Whisper, and converted into a log-mel spectrogram, a grid of energy per frequency band over time that is computed every 10 milliseconds. An encoder built from convolutional and transformer layers turns these frames into features, and a decoder turns the features into text. Three decoder families are common: connectionist temporal classification (CTC), transducers that emit text while audio is still arriving, and attention encoder-decoders such as Whisper, which generate tokens one at a time. CTC, introduced by Alex Graves and colleagues in 2006, lets the network predict one symbol or a special blank for every audio frame, so training needs no frame-level alignment between audio and text. Decoding then merges repeated symbols and removes blanks:

from itertools import groupby

# Most likely symbol for each audio frame from a CTC acoustic model ("_" is the blank)
frames = "hh_ee_ll_ll_oo__"
no_blanks = "hheelllloo"

for path in (frames, no_blanks):
    # CTC decoding: merge repeated symbols, then remove blanks
    merged = [symbol for symbol, _ in groupby(path)]
    text = "".join(symbol for symbol in merged if symbol != "_")
    print(f"{path:>16} -> {text}")

It prints hh_ee_ll_ll_oo__ -> hello and hheelllloo -> helo. The blank between the two runs of l is what keeps the double letter, and the frame path without blanks collapses into a misspelling. Accuracy is measured with word error rate (WER), the number of substituted, deleted, and inserted words divided by the number of words in a reference transcript, so lower is better and insertions can push it above 100%.

Speech Recognition in Voice Interfaces#

Phones, smart speakers, and cars do not stream everything they hear to a full recognizer. A small keyword-spotting model runs on the device as edge AI and listens only for a wake word such as "Hey Siri" or "Alexa," and only after it fires does the device recognize the request and pass the transcript to a large language model:

The same transcript can drive a multimodal vision system: a spoken command such as "find the red backpack" becomes a text prompt for YOLOE-26, the open-vocabulary version of Ultralytics YOLO26, which detects and segments categories named at inference time even if they were never in its training classes.

  • Speech-to-text and ASR: Synonyms for speech recognition.
  • Speaker recognition: Identifies who is speaking rather than what was said, and speaker diarization splits a recording by speaker. "Voice recognition" often refers to identifying the speaker.
  • Natural language understanding (NLU): Interprets the meaning of the transcript, such as the intent behind a request and the names, dates, and amounts it mentions.
  • Text-to-speech (TTS): The reverse direction, generating speech audio from text.

Real-World Applications#

  • Captions and accessibility: Live captions on phones, video platforms, and meeting software make speech accessible to deaf and hard-of-hearing people and searchable for everyone.
  • Clinical documentation: Ambient scribes transcribe doctor-patient conversations and draft notes for the electronic health record.
  • Sentiment analysis of calls: Contact centers transcribe calls for search, compliance checks, and measuring how customers feel about a product or an agent.
  • Speech translation: Recognition followed by machine translation, or a single model such as Whisper translating speech directly into English text, lets travelers and meeting attendees follow other languages.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Transform drone and aerial imagery into real-time insights for agriculture, aquaculture, environmental monitoring, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Bring vision AI to aerial monitoring with Ultralytics YOLO models. Power drones, aerospace workflows, environmental conservation & geospatial industries with computer vision solutions.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Transform drone and aerial imagery into real-time insights for agriculture, aquaculture, environmental monitoring, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Bring vision AI to aerial monitoring with Ultralytics YOLO models. Power drones, aerospace workflows, environmental conservation & geospatial industries with computer vision solutions.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Transform drone and aerial imagery into real-time insights for agriculture, aquaculture, environmental monitoring, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Bring vision AI to aerial monitoring with Ultralytics YOLO models. Power drones, aerospace workflows, environmental conservation & geospatial industries with computer vision solutions.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning