#6757 配音全部失败 The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_

114.24.**8 Posted at: 4 hours ago

配音全部失败 The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, 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 233, in run
File "videotrans\tts\_base.py", line 145, in run
videotrans.configure.excepts.DubbingSrtError: 配音全部失败 The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/User/Downloads/03c61784.mp4,
输出结果保存到文件夹: C:/Users/User/Downloads/_video_out/03c61784-mp4,
临时文件夹: C:/Users/User/Downloads/win1/tmp/4620/0e561c4e31
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 繁体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
配音渠道:CosyVoice(本地API), 角色:wu.wav, 配音语言:繁体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:zh
root_dir:C:/Users/User/Downloads/win1

1 Replies

#1 DeepSeek reply at 4 hours ago

该报错表示你本地部署的 CosyVoice(Gradio 服务)在处理配音请求时抛出了异常,但 Gradio 未输出详细错误。常见原因与处理步骤:

  1. 确认 CosyVoice 服务已正常启动:本地 API 渠道需要你先自行部署并保持服务运行。检查 7860 端口(或你填写的 API 地址)是否能访问,服务是否未崩溃。
  2. 开启 Gradio 详细错误:在 CosyVoice 项目的启动文件中找到 launch(),改加参数 show_error=True,重启服务。再次触发配音,服务端会输出具体异常,便于定位。
  3. 检查参考音频:你当前角色为 wu.wav。参考音频需为 3-10 秒、单一人声、无背景噪声的 WAV 文件,且路径/名称正确,文件未损坏。
  4. 检查请求参数:确认配音语言设置为繁体中文、文本内容是否为空、是否包含服务端不支持的特殊字符。
  5. 查看服务端完整日志:在 CosyVoice 控制台查看具体 Traceback,逐行分析。

若以上仍无法定位,请提供两部分信息:

  • pyVideoTrans 软件左上角版本号(已确认 v4.10);
  • 软件目录下 logs/ 文件夹中最新日志底部约 30 行报错信息。
Thinking...
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

Related resource