#5956 无效的值或参数:Cannot find a function with `api_name`: /basic_tts.:Traceback (most recent call last):

103.62* Posted at: 22 hours ago

无效的值或参数:Cannot find a function with api_name: /basic_tts.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 309, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 313, in _run
File "videotrans\tts\_f5tts.py", line 82, in _item_task_v1
File "gradio_client\client.py", line 475, in predict

self._infer_fn_index(api_name, fn_index)

File "gradio_client\client.py", line 831, in _infer_fn_index

raise ValueError(error_message)

ValueError: Cannot find a function with api_name: /basic_tts.


=
system:Windows-10-10.0.26200-SP0
version:v3.83
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.83

1 Replies

该报错是因为F5-TTS服务端未正常启动或API地址配置错误,gradio_client无法找到/basic_tts接口。

解决方法:

  1. 确认F5-TTS服务已启动:确保你已自行部署并启动了F5-TTS的Gradio WebUI,且在浏览器中能正常访问其页面(默认地址 http://127.0.0.1:7860)。
  2. 检查软件中的API地址:进入 菜单 → TTS设置 → F5-TTS,确认填写的API地址与F5-TTS服务的实际地址一致(例如 http://127.0.0.1:7860)。
  3. 验证接口是否存在:在浏览器中访问 http://127.0.0.1:7860/api/predict/ 查看接口列表,确认存在 /basic_tts。若不存在,说明你部署的不是F5-TTS或版本不匹配,请重新部署官方F5-TTS:https://github.com/SWivid/F5-TTS
  4. 若使用其他TTS渠道:请勿在配音渠道中选择“F5-TTS”,而应选择实际部署的渠道(如Index-TTS、CosyVoice等),并在对应设置中填写正确的API地址。

请查阅相关文档:

如问题依旧,请提供 logs/ 目录下最新日志文件的后30行内容。

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 via ko-fi.com

Dondate via PayPal

Related resource