NGC | Catalog
CatalogModelsSTT En ContextNet 1024

STT En ContextNet 1024

Logo for STT En ContextNet 1024
ContextNet-1024 model for English Automatic Speech Recognition, trained on NeMo ASRSET
Latest Version
April 4, 2023
554.65 MB

Model Overview

This collection contains ContextNet-1024 (around 140M parameters) trained on NeMo ASRSet with over 24,500 hours of English speech.

It utilizes a Google SentencePiece [1] tokenizer with vocabulary size 1024, and transcribes text in lower case english alphabet along with spaces, apostrophes and a few other characters.

Model Architecture

ContextNet [2] model is an autoregressive, transducer based Automatic Speech Recognition model. You may find more info on the detail of this model here: ContextNet Model.


The NeMo toolkit [3] was used for training the models for over several hundred epochs. These model are trained with this example script and this base config.

The tokenizers for these models were built using the text transcripts of the train set with this script.


All the models in this collection are trained on a composite dataset (NeMo ASRSET) comprising of several thousand hours of English speech:

  • LibriSpeech 960 hours of English speech
  • Fisher Corpus
  • Switchboard-1 Dataset
  • WSJ-0 and WSJ-1
  • National Speech Corpus (Part 1, Part 6)
  • VCTK
  • VoxPopuli (EN)
  • Europarl-ASR (EN)
  • Multilingual Librispeech (MLS EN) - 2,000 hours subset
  • Mozilla Common Voice (v8.0)
  • People's Speech (CC-BY CLEAN) - 8,800 hours subset
  • People's Speech (CC-BY-SA CLEAN) - 1,250 hours subset
  • People's Speech (CC-BY DIRTY) - 2,000 hours subset
  • People's Speech (CC-BY-SA DIRTY) - 200 hours subset

Tokenizer Construction

The tokenizer for this model was built using text corpus provided with the train dataset.

We build a Google Sentencepiece Tokenizer [1] with the following script :

python [NEMO_GIT_FOLDER]/scripts/tokenizers/ \
  --manifest="train_manifest.json" \
  --vocab_size=1024 \
  --tokenizer="spe" \
  --spe_type="unigram" \
  --spe_character_coverage=1.0 \
  --no_lower_case \


The performance of Automatic Speech Recognition models is measuring using Word Error Rate. Since this dataset is trained on multiple domains and a much larger corpus, it will generally perform better at transcribing audio in general.

The model obtains the following scores on the following evaluation datasets -

Version Tokenizer Vocabulary Size LS test-other LS test-clean WSJ Eval92 WSJ Dev93 MLS Test MLS Dev MCV Test SLR 83 People Speech Test Train Dataset
1.9.0 SentencePiece Unigram 1024 3.9 1.9 1.3 2.3 5.8 5.3 7.9 (v8.0) 4.7 21.7 NeMo ASRSET 3.0
1.6.0 SentencePiece Unigram 1024 3.7 1.8 1.4 2.3 6.0 5.5 7.2 (v7.0) - - NeMo ASRSET 2.0

Note that these scores on Librispeech are not particularly indicative of the quality of transcriptions that models trained on ASR Set will achieve, but they are a useful proxy.

How to Use this Model

The model is available for use in the NeMo toolkit [3], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.

Automatically load the model from NGC

import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(model_name="stt_en_contextnet_1024")

Transcribing text with this model

python [NEMO_GIT_FOLDER]/examples/asr/ \
  pretrained_name="stt_en_contextnet_1024" \


This model accepts 16000 KHz Mono-channel Audio (wav files) as input.


This model provides transcribed speech as a string for a given audio sample.


Since this model was trained on publically available speech datasets, the performance of this model might degrade for speech which includes technical terms, or vernacular that the model has not been trained on. The model might also perform worse for accented speech.


[1] Google Sentencepiece Tokenizer

[2] ContextNet: Improving Convolutional Neural Networks for Automatic Speech Recognition with Global Context

[3] NVIDIA NeMo Toolkit


License to use this model is covered by the NGC TERMS OF USE unless another License/Terms Of Use/EULA is clearly specified. By downloading the public and release version of the model, you accept the terms and conditions of the NGC TERMS OF USE.