EmilianPostolache / stable-audio-controlnet

Fine-tune Stable Audio Open with DiT ControlNet.
Other
170 stars 4 forks source link

RuntimeError: Error opening '/tmp/tmpgip_kl62/file.mp3': Format not recognised. #4

Open kily-wmz opened 4 days ago

kily-wmz commented 4 days ago

hi ! Thank you very much for your excellent work! I converted the inference code in the ipynb file to py format for execution, but it consistently reports an error that it cannot read /tmp/xxxxx/file.mp3. Have you encountered this issue before? How should I resolve it? Thank you very much!

1728839950052 1728839971864
EmilianPostolache commented 3 days ago

Hello and thanks for the kind words! This should error-out because of libsndfile not being installed. Please install libsndfile (as detailed in the README) with conda install conda-forge::libsndfile.

kily-wmz commented 3 days ago

Hello and thanks for the kind words! This should error-out because of libsndfile not being installed. Please install libsndfile (as detailed in the README) with conda install conda-forge::libsndfile.

Thank you for your response! I have followed the instructions in the readme to install: conda install conda-forge::libsndfile, but the same error still appears after the installation is successful. Could you please tell me what might be the reason? Do you have any other suggestions? Thank you very much!

EmilianPostolache commented 2 days ago

Is ffmpeg installed correctly? If not try sudo apt-get install ffmpeg.

kily-wmz commented 1 day ago

Is ffmpeg installed correctly? If not try sudo apt-get install ffmpeg.

I have correctly installed ffmpeg, but I still cannot read audio in mp3 format, possibly due to version issues. Therefore, I converted all the audio to wav format, and I have successfully run the code. Thank you very much for your help.

EmilianPostolache commented 1 day ago

I remember sometimes I had to downgrade ffmpeg to make it play well along torchaudio. I am glad you managed to run the code with .wav files! I will leave the issue open.