Found the problem, found a fix. Now it is successfully running for me, locally.

#32
by Barry8 - opened

Based on a full error traceback, it looks like the key issue is that the PyTorch Audio Sox extension is not available when trying to run the audio preprocessing.

The key error message is:
RuntimeError: apply_effects_tensor requires sox extension which is not available. Please refer to the stacktrace above for how to resolve this.

And further up in the stack trace it tries to load the Sox library but fails:
OSError: libsox.so: cannot open shared object file: No such file or directory

To resolve this, manually install the Sox library dependency:
sudo apt-get install libsox-dev

And reinstall PyTorch Audio to trigger a recompile with the Sox extension:
pip uninstall torchaudio
pip install torchaudio

My guess is that some change in the environment or dependencies led to the Sox extension not being compiled properly with PyTorch Audio. Reinstalling/recompiling it based on the current setup works for me.

Worked for me! thanks!

Sign up or log in to comment