Learn how to configure online i‑vector speaker adaptation for Kaldi nnet3‑chain models, see a minimal decoding configuration, and avoid common mismatches that hurt accuracy.
Kaldi’s online2 framework lets you run neural acoustic models in real time. This guide walks through a minimal script, explains beam‑width tuning, and shows how to balance latency, CPU usage, and accuracy on both desktops and embedded devices.
An architecture note for a minimal Kaldi online decoder: a single-threaded loop around an HCLG graph and DecodableInterface, with explicit trust boundaries, token-count and RTF checks, and the failure modes that force a redesign.
Deploy Kaldi’s chain models with online decoding: a step‑by‑step guide covering feature extraction, i‑vector adaptation, endpointing, and common pitfalls.
Goal Determine a beam‑width setting for Kaldi’s online decoding that guarantees sub‑100‑ms latency on commodity CPUs while preserving acceptable word‑error‑rate (WER). Unresolved Constraint Kaldi’s online decoder exposes a user‑configurable beam width but does not document an upper bound that ensures low latency. The current implementation applies a static b
For low‑traffic speech‑recognition services using Kaldi’s online decoder ( online2-wav-nnet3-latgen-faster ), the objective is to limit the real‑time factor (RTF) per utterance to a predefined cost threshold—say ≤0.04—while ensuring that the word error rate (WER) does not rise more than 2 % relative to the baseline configuration (beam = 13.0, max‑active = 50