#8207 API URL is error: Traceback (most recent call last):

2404**8785 Posted at: 1 hour ago

API URL is error:
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 108, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
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:

trk=[TransCreate]: uuid='e821cc2b26', proxy_str='http://127.0.0.1:19828', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/视频素材下载/Roadster.mp4,
输出结果保存到文件夹: C:/Users/alexue/Desktop/Roadster-mp4,
临时文件夹: D:/Program Files D/win-pyvideotrans-v4.16/tmp/16160/e821cc2b26
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:CosyVoice(本地API), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
已选 仅输出mp4
代理地址: http://127.0.0.1:19828, precent=15, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=1868249


=
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 1 hour ago

这是 CosyVoice 本地 API 地址未填写或未正确配置导致。

解决方案:

  1. 打开软件顶部菜单 TTS设置 -> CosyVoice,确认 API 地址已填写且格式正确(必须为 http://127.0.0.1:端口 或实际部署电脑 IP,严禁填 0.0.0.0,也不能留空)。日志中 API URL is error: 后面为空,说明地址很可能未填写。
  2. 确认本地部署的 CosyVoice 服务已启动,且该地址在浏览器中能正常打开。
  3. 如果地址已正确填写但仍报错,可能是 v4.14 引入的 API URL is error 已知问题,请重新下载 v4.16 最新补丁包覆盖,或直接下载最新完整包。
  4. 同时注意,本地 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