#8772 {'code': 7, 'msg':

2408**2f7e Posted at: 3 hours ago

{'code': 7, 'msg': "400 Bad Request: The browser (or proxy) sent a request that this server could not understand. ('audio',)"}
self=CloneVoice(uuid=None, proxy_str=None, last_down_time=0, tts_type=31, len=1, language='zh', play=True, volume='+0%', rate='+0%', pitch='+0Hz', has_done=0, wait_sec=1.0, dub_nums=1, error='{\'code\': 7, \'msg\': "400 Bad Request: The browser (or proxy) sent a request that this server could not understand. (\'audio\',)"}', api_url='http://127.0.0.1:9988', model_name='', is_cuda=False, local_dir=None, is_redubb=False):
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': '', 'filename': 'E:/PyVideoTrans/win-pyvideotrans-v4.14/tmp/36468/1794464636.3082995-clonevoice.wav', 'tts_type': 31}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 119, in run
File "videotrans\tts\_base.py", line 123, in run
videotrans.configure.excepts.DubbingSrtError: {'code': 7, 'msg': "400 Bad Request: The browser (or proxy) sent a request that this server could not understand. ('audio',)"}
self=CloneVoice(uuid=None, proxy_str=None, last_down_time=0, tts_type=31, len=1, language='zh', play=True, volume='+0%', rate='+0%', pitch='+0Hz', has_done=0, wait_sec=1.0, dub_nums=1, error='{\'code\': 7, \'msg\': "400 Bad Request: The browser (or proxy) sent a request that this server could not understand. (\'audio\',)"}', api_url='http://127.0.0.1:9988', model_name='', is_cuda=False, local_dir=None, is_redubb=False)


=
system:Windows-10-10.0.26200-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:E:/PyVideoTrans/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 3 hours ago

这是本地 clone-voice 服务端接口不匹配导致的:软件按约定字段名(audio)把参考音频和文本提交给 http://127.0.0.1:9988,但该地址上的服务返回 400 并提示找不到 audio 字段,说明服务端版本/接口路径与软件请求格式不一致,不是软件参数设置问题。

处理建议(按顺序尝试):

  1. 确认 clone-voice 服务确实已在 9988 端口启动:浏览器访问 http://127.0.0.1:9988 应能打开其 WebUI;若打不开,说明服务未启动或端口被占用,需重新启动服务并核对端口。
  2. 核对 菜单-翻译设置-clone-voice 中 API 地址填写的是 http://127.0.0.1:9988,不要填 0.0.0.0,末尾不要带多余路径。
  3. 若地址无误仍报同一错误,属于 clone-voice 服务端版本与软件接口格式不兼容。该渠道在官方文档中标注为“已不维护”,建议直接更换配音渠道,避免继续排查。

推荐的替代配音渠道:

  • 无需部署:Edge-TTS(免费)(默认,音色自然)
  • 内置、支持克隆原音色:Qwen3-TTS(内置)、F5-TTS(内置)、OmniVoice(内置)、Confucius(内置)、ChatterBox(内置)、ZipVoice(内置)
  • 本地自行部署、支持克隆:GPT-SoVITS、Index-TTS、CosyVoice、VoxCPM-TTS(接口文档更完整、维护活跃)

补充提醒:使用带 clone 角色的渠道时,需把 高级选项-语音识别参数-最短语音持续(毫秒) 设为 ≥3000,并保证参考音频为 3~10 秒、单声道 WAV、无背景噪声。

请查阅相关文档:

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