Cannot import module torchaudio.prototype

1.2k Views Asked by At

I wanted to make ctc_decoder using torchaudio ctc_decoder module. According to this tutorial ASR INFERENCE WITH CTC DECODER it should have been easy to import as usual but I am unable to do so in google colab even after installing torchaudio. It says ModuleNotFoundError: No module named 'torchaudio.prototype' How can I import prototype module?

1

There are 1 best solutions below

0
moto On

The prototype feature is only available in nightly builds, so one needs to install nightly version, following the https://pytorch.org/get-started/locally/ .

Note that since the release of 0.12, the CTC decoder is in beta and is available as from torchaudio.models.decoder import ctc_decoder.