f5-tts-api-v0.3在pyVideoTrans里报错

Viewed 17
api接口地址  http://127.0.0.1:5010
INFO:waitress:Serving on http://127.0.0.1:5010
INFO:__main__:Accessing generate_audio route
INFO:__main__:Processing audio file: audio

vocab :  G:\f5-tts-api-v0.3\runtime\..\f5_tts\infer\examples\vocab.txt
token :  custom
model :  G:\f5-tts-api-v0.3\modelscache\hub\models--SWivid--F5-TTS\snapshots\4dcc16f297f2ff98a17b3726b16f5de5a5e45672\F5TTS_Base\model_1200000.safetensors

Load vocos from local path ./modelscache/hub/models--charactr--vocos-mel-24khz/snapshots/0feb3fdd929bcd6649e0e7c5a688cf7dd012ef21/
Converting audio...
G:\f5-tts-api-v0.3\runtime\./Lib/site-packages\pydub\utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
  warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
ERROR:__main__:Error generating audio: [WinError 2] 系统找不到指定的文件。
Traceback (most recent call last):
  File "G:\f5-tts-api-v0.3\api.py", line 146, in api
    voices[voice]["ref_audio"], voices[voice]["ref_text"] = preprocess_ref_audio_text(
  File "G:\f5-tts-api-v0.3\runtime\..\f5_tts\infer\utils_infer.py", line 282, in preprocess_ref_audio_text
    aseg = AudioSegment.from_file(ref_audio_orig)
  File "G:\f5-tts-api-v0.3\runtime\./Lib/site-packages\pydub\audio_segment.py", line 728, in from_file
    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
  File "G:\f5-tts-api-v0.3\runtime\./Lib/site-packages\pydub\utils.py", line 274, in mediainfo_json
    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
  File "subprocess.py", line 971, in __init__
  File "subprocess.py", line 1456, in _execute_child
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

用f5-tts文件夹里的test.py测试正常,在pyVideoTrans里测试就报错
微信截图_20250302174213.png
![微信截图_20250302174545.png]
(https://bbs.pyvideotrans.com/uploads/post/5phgh2272TN.png)
微信截图_20250302174612.png

1 Answers

从 pyvideotarns 软件的 ffmpeg 文件夹里复制 ffprobe.exe 到 f5-ttsapi的目录下,和 api.py 放在一起

谢谢解决了

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 bbs-pyVideoTrans.