- en: torchaudio.models.decoder id: totrans-0 prefs: - PREF_H1 type: TYPE_NORMAL zh: torchaudio.models.decoder - en: 原文:[https://pytorch.org/audio/stable/models.decoder.html](https://pytorch.org/audio/stable/models.decoder.html) id: totrans-1 prefs: - PREF_BQ type: TYPE_NORMAL zh: 原文:[https://pytorch.org/audio/stable/models.decoder.html](https://pytorch.org/audio/stable/models.decoder.html) - en: '## CTC Decoder[](#ctc-decoder "Permalink to this heading")' id: totrans-2 prefs: [] type: TYPE_NORMAL zh: '## CTC解码器[](#ctc-decoder "跳转到此标题")' - en: '| [`CTCDecoder`](generated/torchaudio.models.decoder.CTCDecoder.html#torchaudio.models.decoder.CTCDecoder "torchaudio.models.decoder.CTCDecoder") | CTC beam search decoder from *Flashlight* [[Kahn *et al.*, 2022](references.html#id35 "Jacob Kahn, Vineel Pratap, Tatiana Likhomanenko, Qiantong Xu, Awni Hannun, Jeff Cai, Paden Tomasello, Ann Lee, Edouard Grave, Gilad Avidov, and others. Flashlight: enabling innovation in tools for machine learning. arXiv preprint arXiv:2201.12465, 2022.")]. |' id: totrans-3 prefs: [] type: TYPE_TB zh: '| [`CTCDecoder`](generated/torchaudio.models.decoder.CTCDecoder.html#torchaudio.models.decoder.CTCDecoder "torchaudio.models.decoder.CTCDecoder") | 来自 *Flashlight* 的CTC波束搜索解码器 [[Kahn *et al.*, 2022](references.html#id35 "Jacob Kahn, Vineel Pratap, Tatiana Likhomanenko, Qiantong Xu, Awni Hannun, Jeff Cai, Paden Tomasello, Ann Lee, Edouard Grave, Gilad Avidov, and others. Flashlight: enabling innovation in tools for machine learning. arXiv preprint arXiv:2201.12465, 2022.")]。 |' - en: '| [`ctc_decoder`](generated/torchaudio.models.decoder.ctc_decoder.html#torchaudio.models.decoder.ctc_decoder "torchaudio.models.decoder.ctc_decoder") | Builds an instance of [`CTCDecoder`](generated/torchaudio.models.decoder.CTCDecoder.html#torchaudio.models.decoder.CTCDecoder "torchaudio.models.decoder.CTCDecoder"). |' id: totrans-4 prefs: [] type: TYPE_TB zh: '| [`ctc_decoder`](generated/torchaudio.models.decoder.ctc_decoder.html#torchaudio.models.decoder.ctc_decoder "torchaudio.models.decoder.ctc_decoder") | 构建 [`CTCDecoder`](generated/torchaudio.models.decoder.CTCDecoder.html#torchaudio.models.decoder.CTCDecoder "torchaudio.models.decoder.CTCDecoder") 的实例。 |' - en: '| [`download_pretrained_files`](generated/torchaudio.models.decoder.download_pretrained_files.html#torchaudio.models.decoder.download_pretrained_files "torchaudio.models.decoder.download_pretrained_files") | Retrieves pretrained data files used for [`ctc_decoder()`](generated/torchaudio.models.decoder.ctc_decoder.html#torchaudio.models.decoder.ctc_decoder "torchaudio.models.decoder.ctc_decoder"). |' id: totrans-5 prefs: [] type: TYPE_TB zh: '| [`download_pretrained_files`](generated/torchaudio.models.decoder.download_pretrained_files.html#torchaudio.models.decoder.download_pretrained_files "torchaudio.models.decoder.download_pretrained_files") | 获取用于 [`ctc_decoder()`](generated/torchaudio.models.decoder.ctc_decoder.html#torchaudio.models.decoder.ctc_decoder "torchaudio.models.decoder.ctc_decoder") 的预训练数据文件。 |' - en: Tutorials using CTC Decoder id: totrans-6 prefs: [] type: TYPE_NORMAL zh: 使用CTC解码器的教程 - en: '![ASR Inference with CTC Decoder](../Images/260e63239576cae8ee00cfcba8e4889e.png)' id: totrans-7 prefs: [] type: TYPE_IMG zh: '![使用CTC解码器的ASR推理](../Images/260e63239576cae8ee00cfcba8e4889e.png)' - en: '[ASR Inference with CTC Decoder](tutorials/asr_inference_with_ctc_decoder_tutorial.html#sphx-glr-tutorials-asr-inference-with-ctc-decoder-tutorial-py)' id: totrans-8 prefs: [] type: TYPE_NORMAL zh: '[使用CTC解码器的ASR推理](tutorials/asr_inference_with_ctc_decoder_tutorial.html#sphx-glr-tutorials-asr-inference-with-ctc-decoder-tutorial-py)' - en: ASR Inference with CTC Decoder id: totrans-9 prefs: [] type: TYPE_NORMAL zh: 使用CTC解码器的ASR推理 - en: CUDA CTC Decoder[](#cuda-ctc-decoder "Permalink to this heading") id: totrans-10 prefs: - PREF_H2 type: TYPE_NORMAL zh: CUDA CTC解码器[](#cuda-ctc-decoder "跳转到此标题") - en: '| [`CUCTCDecoder`](generated/torchaudio.models.decoder.CUCTCDecoder.html#torchaudio.models.decoder.CUCTCDecoder "torchaudio.models.decoder.CUCTCDecoder") | CUDA CTC beam search decoder. |' id: totrans-11 prefs: [] type: TYPE_TB zh: '| [`CUCTCDecoder`](generated/torchaudio.models.decoder.CUCTCDecoder.html#torchaudio.models.decoder.CUCTCDecoder "torchaudio.models.decoder.CUCTCDecoder") | CUDA CTC波束搜索解码器。 |' - en: '| [`cuda_ctc_decoder`](generated/torchaudio.models.decoder.cuda_ctc_decoder.html#torchaudio.models.decoder.cuda_ctc_decoder "torchaudio.models.decoder.cuda_ctc_decoder") | Builds an instance of [`CUCTCDecoder`](generated/torchaudio.models.decoder.CUCTCDecoder.html#torchaudio.models.decoder.CUCTCDecoder "torchaudio.models.decoder.CUCTCDecoder"). |' id: totrans-12 prefs: [] type: TYPE_TB zh: '| [`cuda_ctc_decoder`](generated/torchaudio.models.decoder.cuda_ctc_decoder.html#torchaudio.models.decoder.cuda_ctc_decoder "torchaudio.models.decoder.cuda_ctc_decoder") | 构建 [`CUCTCDecoder`](generated/torchaudio.models.decoder.CUCTCDecoder.html#torchaudio.models.decoder.CUCTCDecoder "torchaudio.models.decoder.CUCTCDecoder") 的实例。 |' - en: Tutorials using CUDA CTC Decoder id: totrans-13 prefs: [] type: TYPE_NORMAL zh: 使用CUDA CTC解码器的教程 - en: '![ASR Inference with CUDA CTC Decoder](../Images/9d0a043104707d980656cfaf03fdd1a1.png)' id: totrans-14 prefs: [] type: TYPE_IMG zh: '![使用CUDA CTC解码器的ASR推理](../Images/9d0a043104707d980656cfaf03fdd1a1.png)' - en: '[ASR Inference with CUDA CTC Decoder](tutorials/asr_inference_with_cuda_ctc_decoder_tutorial.html#sphx-glr-tutorials-asr-inference-with-cuda-ctc-decoder-tutorial-py)' id: totrans-15 prefs: [] type: TYPE_NORMAL zh: '[使用CUDA CTC解码器的ASR推理](tutorials/asr_inference_with_cuda_ctc_decoder_tutorial.html#sphx-glr-tutorials-asr-inference-with-cuda-ctc-decoder-tutorial-py)' - en: ASR Inference with CUDA CTC Decoder id: totrans-16 prefs: [] type: TYPE_NORMAL zh: 使用CUDA CTC解码器的ASR推理