Glossary
RNN transducer (RNN-T)
An RNN transducer (RNN-T) is a neural speech model that reads audio in order and emits words as it goes, so text can appear while the speaker is still talking. It has an encoder for the sound, a prediction network for the words already written, and a joint network that chooses the next output.
Updated October 17, 20264 cited facts, each traced to its source
Also called RNN-T, neural transducer, TDT.
An RNN transducer (RNN-T) is a neural speech model that writes text one symbol at a time while it reads the audio. Graves introduced the transducer in 2012 as an end-to-end system, and noted that recurrent networks had traditionally required a pre-defined alignment between the input and the output 1. The transducer removes that requirement, which is why it can be trained directly on audio and text.
Three networks work together
An RNN-T has three parts:
- An encoder reads the audio frames in order and builds a representation of the sound so far.
- A prediction network reads the symbols the model has already written, so it knows the words before the current one.
- A joint network combines the two and scores the next output: a character, a word piece, or a blank that means "read more audio".
Because the prediction network looks at earlier output, each choice has context that a CTC model lacks. The model can also emit several symbols from one stretch of audio before it moves on to the next.
Streaming is why it suits dictation
Google described its on-device recognizer, an RNN-T model, as one that "continuously processes input samples and streams output symbols", and said that property is welcome for speech dictation 2. In a 2019 study, He and colleagues reported that their RNN transducer could outperform a conventional CTC-based model in both latency and accuracy across a number of evaluation categories 3.
Latency is the delay between saying a word and seeing it. A model that waits for the whole sentence before it writes anything feels slow when you dictate. A transducer keeps that delay short, because each word is written as soon as the model has heard enough to decide it.
The trade-off is that a streaming model sees less of the future audio when it writes each word. A file transcribed offline can use a larger model that reads the whole recording first, which usually gives a lower error rate at the cost of waiting.
TDT: a transducer that skips frames
A token-and-duration transducer (TDT) is a variant that predicts both the symbol and how many audio frames it spans, so the decoder can jump ahead. The Open ASR Leaderboard paper says TDT decoders offer superior speed, measured as RTFx, which makes them better suited for long-form and batched processing 4. Speed matters for transcribing hours of audio, where the real-time factor decides how long the job takes.
Related terms
- Connectionist temporal classification (CTC): the simpler training method that transducers extend.
- Conformer: an encoder design often paired with transducer decoders.
- Automatic speech recognition (ASR): the broad field this model belongs to.
- Real-time factor (RTF): the measure of how fast a model processes audio.
Guides that cover it
Evidence
Every number on this page, with where it comes from. Open a fact to see the exact words in its source.
- 1.
- 2.
- 3.
- 4.
Related terms
- Speech Recognition: What It Is and How Well It WorksThe topic this term belongs to
- Acoustic modelAn acoustic model is the part of a speech recognizer that scores how well a short window of audio matches the sounds of speech. Since about 2012 most acoustic models are deep neural networks, and their training data strongly affects accuracy.
- Automatic speech recognition (ASR)Automatic speech recognition (ASR) is software that converts spoken audio into written words. Modern systems are neural networks trained on large amounts of transcribed speech, and they run in the cloud or on the device.
- ConformerA Conformer is a neural encoder for speech recognition that combines self-attention, which sees the whole input, with convolution, which captures local sound patterns. FastConformer is NVIDIA's faster variant of the same design, used in streaming models.
- Connectionist temporal classification (CTC)Connectionist temporal classification (CTC) is a way to train a neural network to turn audio into text without knowing in advance which moment of sound matches which letter. The network labels every short slice of audio with a character or a blank, and the blanks and repeated labels are then removed to leave the transcript.
- Hidden Markov model (HMM)A hidden Markov model (HMM) is a statistical model in which a sequence of hidden states produces the observations you can measure, and each state changes to the next with set probabilities. In speech recognition, the hidden states are units of sound and the observations are short frames of audio.
- Inverse text normalization (ITN)Inverse text normalization (ITN) is the step that converts a speech recognizer's spoken-form output into written form, so that 'two hundred' becomes 200. It changes how the text reads, not which words the recognizer heard.
- Language model (in speech recognition)In speech recognition, a language model (LM) scores how probable a word sequence is in a language. The recognizer combines that score with the acoustic evidence to choose between words that sound alike, such as homophones.
- LibriSpeechLibriSpeech is a free corpus of about 1,000 hours of read English speech, taken from LibriVox audiobooks, and it is one of the most widely used benchmarks for English speech recognition. Its scores describe clean, read speech, which differs from everyday dictation.
- Mel spectrogramA Mel spectrogram is a grid of sound energy over time, with frequency bands spaced to match human hearing. Many speech recognizers compute its logarithm, the log-Mel spectrogram, and feed it to a neural network instead of the raw waveform.
- Real-time factor (RTF)The real-time factor (RTF) is the time a system takes to process audio divided by the length of that audio. An RTF of 1 or lower means the system keeps up with real-time speech. Some leaderboards report the inverse, RTFx, where higher is faster.
- Speaker diarizationSpeaker diarization is the task of working out who spoke when in a recording, by splitting the audio into turns and grouping turns that come from the same voice. It is separate from transcribing the words, and a transcript gains speaker labels only when diarization is run alongside recognition.
- Voice activity detection (VAD)Voice activity detection (VAD) is a component that decides whether a stretch of audio contains speech. Speech recognizers use it to split audio into turns, skip silence and decide when a speaker has finished.
Pages that use this term
- Speech Recognition: What It Is and How Well It WorksTopic
- Speech Recognition Models: How Neural ASR WorksGuide
- Real-Time Speech Recognition: Streaming and LatencyGuide
- History of Speech Recognition: From Audrey to WhisperGuide
- What role do hidden Markov models play in speech recognition?Question
- Automatic speech recognition (ASR)Glossary
- ConformerGlossary
- Connectionist temporal classification (CTC)Glossary
- Hidden Markov model (HMM)Glossary