SillyTavern / SillyTavern-Extras

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

Error 500 RVC vocie not work #239

Open alastor367 opened 4 months ago

alastor367 commented 4 months ago

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

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 -
alastor367 commented 4 months ago

I forgot to add I'm using Windows 10

alastor367 commented 4 months ago

i miss click and close ;-; im dump

Cohee1207 commented 4 months ago

Do you have ffmpeg available in PATH?

alastor367 commented 4 months ago

Do you have ffmpeg available in PATH?

yes image

alastor367 commented 4 months ago

Do you have ffmpeg available in PATH?

I also have the version for Python installed. I also have everything from requirements.txt and requirements-rvc.txt