GenAIHub
Back to Technical
Voice AI

ASR & Speech-to-Text (STT)

Automatic Speech Recognition (ASR) is the foundation of Voice AI, converting spoken language into text. Modern ASR leverages Transformers and End-to-End Deep Learning to achieve super-human accuracy, enabling real-time assistants, automated transcription, and voice interfaces.

Core Concepts & Architecture

End-to-End Models

Traditional ASR systems used complex pipelines (Acoustic Model + Language Model + Lexicon). Modern systems like Whisper and Gemini use end-to-end deep neural networks (often Encoder-Decoder Transformers) to map audio directly to text sequences, learning alignment implicitly.

Key Challenges

  • Cocktail Party Problem: Isolating specific speakers in noisy environments.
  • Low-Resource Languages: Lack of training data for dialects and niche languages.
  • Latency: Achieving sub-100ms response for real-time conversation.

Modern ASR Pipeline (Whisper-style)

graph LR A[Audio Input] -->|Log-Mel Spectrogram| B(CNN/Conv1D Encoder) B -->|Contextual Embedding| C(Transformer Encoder) C -->|Cross-Attention| D(Transformer Decoder) D -->|Autoregressive Generation| E[Text Tokens] subgraph "Context" L[Language ID] T[Task: Transcribe/Translate] P[Previous Text] end L --> D T --> D P --> D

State-of-the-art Models (2024-2025)

OpenAI Whisper V3 Turbo New (Late 2024)

The latest evolution of the open-source industry standard. Whisper V3 Turbo offers comparable accuracy to Large V3 but with 6x faster inference speed (RTFx ~216). It reduces decoder layers from 32 to 4 while maintaining high accuracy on 99+ languages, making it ideal for cost-effective, low-latency applications.

Google Gemini 2.0 (Multimodal) Multimodal

Unlike traditional ASR, Gemini processes audio natively as a multimodal token stream. This allows for Speech-to-Speech (S2S) interactions with zero latency between "listening" and "thinking". It excels at understanding nuance, tone, and technical vocabulary by leveraging its massive world knowledge graph during transcription.

Nvidia Canary & Parakeet Top Leaderboard

Leading the Hugging Face Open ASR Leaderboard (Late 2025). Canary Qwen 2.5B achieves ~5.6% WER using a novel Speech-Augmented Language Model (SALM) architecture. Parakeet TDT (0.6B) is optimized for extreme speed (RTFx > 3000), perfect for ultra-high-throughput stream processing.

Metrics that Matter

WER (Word Error Rate)

WER = (S + D + I) / N

The standard metric. Sum of Substitutions (S), Deletions (D), and Insertions (I) divided by the total number of words in the reference (N). Lower is better. Human parity is ~4-5%.

RTFx (Real-Time Factor)

RTFx = Audio Duration / Processing Time

Measures speed. An RTFx of 50 means the system processes 50 seconds of audio in 1 second. Essential for live captioning and server cost estimation.

Key Implementations