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, orNone
if the model is not associated with an lmlexicon
: path corresponding to downloaded lexicon filetokens
: path corresponding to downloaded tokens file
- Tutorials using
download_pretrained_files
: ASR Inference with CTC Decoder
ASR Inference with CTC Decoder