#5010 videotrans.configure.excepts.DubbingSrtError: Connection was closed by the remote host. Error code: 1007. Error details:

60.14* Posted at: 18 hours ago

Connection was closed by the remote host. Error code: 1007. Error details: Unsupported voice None. USP state: TurnStarted. Received audio size: 0 bytes.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: Connection was closed by the remote host. Error code: 1007. Error details: Unsupported voice None. USP state: TurnStarted. Received audio size: 0 bytes.


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:C:/SDE001/win-pyvideotrans-v4.01-0602

1 Replies

该错误是因为 未选择有效的配音角色 或所选角色与目标语言不匹配,导致 Edge-TTS 无法找到可用的发音人。

解决方案:

  1. 确保已选择正确的目标语言(如“中文(简体)”),然后在配音角色下拉框中手动选择一个具体的角色(例如 zh-CN-XiaoxiaoNeural),而不是保留为空白或“None”。
  2. 如果下拉列表为空,请先点击任意角色后再试——首次使用 Edge-TTS 可能需要联网加载角色列表。
  3. 若仍报错,请进入菜单 → 工具 → 高级选项,在“字幕配音调整”区域将以下值设为:

    • EdgeTTS配音渠道配音并发数1
    • 配音后暂停秒5
      然后重启软件重试。
  4. 检查网络代理:Edge-TTS 在国内可直连,无需代理。若你填写了代理地址,请先清空再试。

请查阅相关文档:

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: ko-fi.com/jianchang512

Related resource