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

240e**87eb Posted at: 2 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, tts_type=31, len=1, language='zh', play=True, volume='+0%', pitch='+0Hz', rate='+0%', speed=1.0, 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', is_cuda=False, local_dir=None, is_redubb=False, model_name='', ainame=None:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': '', 'filename': 'C:/Program Files/pyvideotrans-v4.15/tmp/4596/1791903690.3980374-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 122, in run
File "videotrans\tts\_base.py", line 125, 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, tts_type=31, len=1, language='zh', play=True, volume='+0%', pitch='+0Hz', rate='+0%', speed=1.0, 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', is_cuda=False, local_dir=None, is_redubb=False, model_name='', ainame=None


=
system:Windows-10-10.0.19044-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:C:/Program Files/pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

这是两个问题叠加导致的:clone-voice 渠道本身已停止维护,且您的软件被解压到了 C:\Program Files 系统权限目录,底层服务无法正常接收上传的音频字段(报错中的 ('audio',) 即服务器拒绝解析该字段)。

解决方案

  1. 彻底卸载/删除当前安装,将软件解压到非系统盘的全英文浅路径(如 D:\pyVideoTrans),右键 sp.exe 选择“以管理员身份运行”。不要放在 C:\Program Files 下。
  2. 放弃 CloneVoice 渠道:该渠道在知识库中已明确标注“已不维护”,400 错误大概率是服务端接口与当前版本不兼容所致。建议改用以下仍维护的声音克隆渠道:

    • 内置免费:OmniVoice-TTS、Qwen-TTS、F5-TTS、Confucius-TTS
    • 本地 API:GPT-SoVITS、CosyVoice
  3. 若必须使用 clone-voice,请检查你本地部署的 clone-voice 服务端是否仍存活,并确认其 API 上传字段与软件 v4.15 匹配,但鉴于其不再维护,不推荐继续投入排查。

请查阅相关文档:

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