SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
563 stars 133 forks source link

Error 500 RVC not working #240

Open alastor367 opened 6 months ago

alastor367 commented 6 months ago

P.S. I used a translator to translate my problem from my language into English

I'm using Windows 10

For some reason, when I try to use rvc it crashes in my console with such an error (given below) and on the same page error 500 does anyone know how to fix it? (I've checked the topic and even the topics with the same blend, nothing helped me from what I've seen)

AttributeError: module 'ffmpeg' has no attribute 'input'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\birdb\Desktop\AI\SillyTavern-Extras-main\modules\voice_conversion\rvc\rvc.py", line 210, in vc_single audio = load_audio(input_audio_path, 16000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\birdb\Desktop\AI\SillyTavern-Extras-main\modules\voice_conversion\rvc\rvc.py", line 161, in load_audio raise RuntimeError(f"Failed to load audio: {e}") RuntimeError: Failed to load audio: module 'ffmpeg' has no attribute 'input'

'NoneType' object has no attribute 'dtype' 2024-04-30 19:24:03 | INFO | werkzeug | 127.0.0.1 - - [30/Apr/2024 19:24:03] "POST /api/voice-conversion/rvc/process-audio HTTP/1.1" 500 - gin_channels: 256 self.spk_embed_dim: 109

Traceback (most recent call last): File "C:\Users\birdb\Desktop\AI\SillyTavern-Extras-main\modules\voice_conversion\rvc\rvc.py", line 153, in load_audio ffmpeg.input("pipe:0", threads=0) ^^^^^^^^^^^^ AttributeError: module 'ffmpeg' has no attribute 'input' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\birdb\Desktop\AI\SillyTavern-Extras-main\modules\voice_conversion\rvc\rvc.py", line 210, in vc_single audio = load_audio(input_audio_path, 16000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\birdb\Desktop\AI\SillyTavern-Extras-main\modules\voice_conversion\rvc\rvc.py", line 161, in load_audio raise RuntimeError(f"Failed to load audio: {e}") RuntimeError: Failed to load audio: module 'ffmpeg' has no attribute 'input' 'NoneType' object has no attribute 'dtype' 2024-04-30 19:24:04 | INFO | werkzeug | 127.0.0.1 - - [30/Apr/2024 19:24:04] "POST /api/voice-conversion/rvc/process-audio HTTP/1.1" 500 -
Sabaknn commented 3 months ago

dude,u’ve solve this problem yet? I got the same problem as well