Shortcuts

download_pretrained_files

torchaudio.models.decoder.download_pretrained_files(model: str) PretrainedFiles[source]

Retrieves pretrained data files used for ctc_decoder().

Parameters:

model (str) – pretrained language model to download. Valid values are: "librispeech-3-gram", "librispeech-4-gram" and "librispeech".

Returns:

Object with the following attributes

  • lm: path corresponding to downloaded language model, or None if the model is not associated with an lm

  • lexicon: path corresponding to downloaded lexicon file

  • tokens: path corresponding to downloaded tokens file

Tutorials using download_pretrained_files:
ASR Inference with CTC Decoder

ASR Inference with CTC Decoder

ASR Inference with CTC Decoder

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources