#8209 API URL is error: :{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'en_female_2.wav', 'filename': 'D:/Program Files D/win

2404**8785 Posted at: 3 hours ago

API URL is error: :
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'en_female_2.wav', 'filename': 'D:/Program Files D/win-pyvideotrans-v4.16/tmp/16160/1792146851.510078-cosyvoice.wav', 'tts_type': 14}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "", line 20, in init
File "videotrans\tts\_cosyvoice.py", line 12, in post_init
File "videotrans\tts\_gradio.py", line 29, in post_init
videotrans.configure.excepts.StopTask: API URL is error:


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Program Files D/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 3 hours ago

该报错是 CosyVoice(本地API配音渠道)的 API 地址未配置或为空所致。程序在试听/配音时读取到空的 API URL,触发了 StopTask: API URL is error。

解决方法:

  1. 打开软件顶部菜单 设置 → TTS设置 → CosyVoice,确认已填写正确的 API 地址(如 http://127.0.0.1:5000,不可填 0.0.0.0),并点击保存。
  2. 若已填写仍报错,可能是 v4.14 引入的已知 bug,或 v4.16 升级后 API 地址未正确保留。请重新下载并覆盖最新的 v4.16 补丁包(或完整安装包),覆盖后再重新填写一次 API 地址。
  3. 检查 CosyVoice 本地服务是否已成功启动,且端口与软件中填写的一致。
注意:CosyVoice 属于“本地自行部署”渠道,必须先自行启动服务并获取可访问的 API 地址,软件本身不内置该服务。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource