Skip to content

Instantly share code, notes, and snippets.

@flashlin
Created May 15, 2021 12:05
Show Gist options
  • Save flashlin/218876b07e0db558c344bc0393c5b68c to your computer and use it in GitHub Desktop.
Save flashlin/218876b07e0db558c344bc0393c5b68c to your computer and use it in GitHub Desktop.
cannot import torch audio ' No audio backend is available.'

You need to install the audio file I/O backend. If Linux it's Sox, if Windows it's SoundFile

To check if you have one set run str(torchaudio.get_audio_backend()) and if 'None' is the result then install the backend.

SoundFile for Windows pip install PySoundFile

Sox for Linux pip install sox

@MalinavyBusel
Copy link

thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment