#5622 videotrans.configure.excepts.DubbingSrtError: Cannot find a function with `api_name`: /basic_tts.

122.190* Posted at: 3 hours ago

Cannot find a function with api_name: /basic_tts.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 133, in run
videotrans.configure.excepts.DubbingSrtError: Cannot find a function with api_name: /basic_tts.


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyVideoTrans

1 Replies

这是因 F5-TTS 或相关 Gradio API 服务未正确启动或 API 地址配置错误导致的。

解决方法:

  1. 确认服务已启动:确保已正确启动 F5-TTS 服务(例如执行 f5-tts/gradio.py 或对应启动脚本)。服务启动后控制台应有 Running on local URL: http://127.0.0.1:7860 等输出。
  2. 检查 API 地址配置:在软件菜单 → TTS 设置F5TTS 中,将 API 地址 填写为服务实际运行的地址(默认 http://127.0.0.1:7860),不要添加任何路径后缀(如 /basic_tts 会自动拼接)。
  3. 核对配音渠道:确保主界面 Dubbing Channel 选择了正确的渠道(例如 F5-TTS),并且与启动的服务类型一致(不要用 F5-TTS 渠道去连接 Spark-TTS、Index-TTS 等其他服务)。
  4. 重启软件与重试:完成上述调整后,重启软件再试一次。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource