You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for this repository! This is very useful and thanks a lot for great notebook about Bark+Vocos integration!
Error
I tried to follow notebook Bark+Vocos.ipynb but encountered the following error:
Traceback (most recent call last):
File ".../bark_vocos_usage.py", line 66, in <module>
torchaudio.save("encodec.mp3", encodec_output[None, :], 44100, compression=128)
File ".../venv/lib/python3.10/site-packages/torchaudio/_backend/utils.py", line 312, in save
return backend.save(
File ".../venv/lib/python3.10/site-packages/torchaudio/_backend/ffmpeg.py", line 351, in save
raise ValueError(
ValueError: ('FFmpeg backend expects non-`None` value for argument `compression` to be of ', "type `torchaudio.io.CodecConfig`, but received value of type <class 'int'>")
Workaround
For me it works if I replace these two last lines:
Just in case this will help somebody someday - for me it works after installing torch with pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 and IPython with pip install ipython. And these packages were finally installed:
Thanks a lot for this repository! This is very useful and thanks a lot for great notebook about Bark+Vocos integration!
Error
I tried to follow notebook Bark+Vocos.ipynb but encountered the following error:
Workaround
For me it works if I replace these two last lines:
with these:
pip freeze
Just in case this will help somebody someday - for me it works after installing torch with
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
and IPython withpip install ipython
. And these packages were finally installed:The text was updated successfully, but these errors were encountered: