#3030 RuntimeError: Connection was closed by the remote host. Error code: 1007. Error details: Unsupported voice None. USP sta

223.18* Posted at: 15 days ago 👁34

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 17, in run
File "videotrans\tts\__init__.py", line 321, in run
File "videotrans\tts\_base.py", line 176, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_azuretts.py", line 150, in _run
RuntimeError: 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:v3.96
frozen:True
language:zh
root_dir:D:/Youtube/win-pyvideotrans-v3.96

1 Replies

这是由于在 Azure TTS 配音渠道中,未正确设置或选择了不支持的语音角色(voice)导致的。

解决方案:

  1. 检查并设置语音角色:在 pyVideoTrans 的“配音设置”中,确保已选择 Azure TTS 渠道,并在“角色”下拉列表中明确选择一个有效的语音名称(如 zh-CN-XiaoxiaoNeural),不能为空或 None
  2. 验证 Azure 资源配置:确认在 Azure TTS 配置中填写的“区域”和“密钥”正确无误,且该资源支持你所选的语音角色。
  3. 查看官方文档:关于 Azure 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.

Related resource