提问人:Eduard Vlasov 提问时间:10/26/2023 更新时间:10/27/2023 访问量:73
无法加载音频: [WinError 2] 找不到指定的文件。RVC系列
Failed to load audio: [WinError 2] The specified file can not be found. RVC
问:
尝试使用 rvc_convert 将带有文本的音频转换为我自己的 AI 模型,但它失败了,并让我出现了这个异常:
Traceback (most recent call last):
File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 14, in load_audio
ffmpeg.input(file, threads=0)
File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 313, in run
process = run_async(
File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 284, in run_async
return subprocess.Popen(
File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Не удается найти указанный файл
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\Python\py\TTS\main.py", line 47, in <module>
rvc_convert(model_path='eduard.pth',
File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 323, in rvc_convert
wav_opt=vc_single(0,input_path,f0_up_key,None,f0method,file_index,file_index2,index_rate,filter_radius,resample_sr,rms_mix_rate,protect)
File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 160, in vc_single
audio = load_audio(input_audio_path, 16000)
File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 19, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: [WinError 2] Не удается найти указанный файл
我读到其他人也有同样的错误。我需要做点什么,但对我不起作用。
蟒蛇 3.10ffmpeg
已尝试重新安装ffmpeg。不工作。 尝试使用其他 Python 版本。不工作。 尝试将 ffmpeg.exe 从此存档 https://github.com/BtbN/FFmpeg-Builds/releases 提取到 ffmpge 库文件夹中。不工作
答:
评论