#1868 RuntimeError: <400> InternalError.Algo.InvalidParameter: Voice 'Serena' is not supported.

2408:8226* Posted at: 2 hours ago 👁6

运行时错误: InternalError.Algo.InvalidParameter: Voice 'Serena' is not supported.:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 299, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_qwentts.py", line 65, in _run
RuntimeError: InternalError.Algo.InvalidParameter: Voice 'Serena' is not supported.


=
system:Windows-10-10.0.19045-SP0
version:v3.89
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-3.89

1 Replies

这个错误表明您选择的配音角色 "Serena" 不被阿里云 Qwen-TTS 支持。Serena 是 Edge-TTS 的角色名称,而您当前使用的是阿里云 Qwen-TTS。

解决方案:

  1. 切换配音渠道: 在主界面第4行“配音”下拉菜单中,将渠道从“阿里云Qwen-TTS”切换为“Edge-TTS”。切换后,“角色”列表会自动更新为 Edge-TTS 支持的列表,您就可以选择并使用“Serena”了。
  2. 选择 Qwen-TTS 支持的角色: 如果您想继续使用阿里云 Qwen-TTS,请在“角色”下拉列表中,选择一个 Qwen-TTS 支持的角色(例如 zh-CN-XiaoxiaoNeural 等)。您可以在阿里云官方文档中查找其支持的角色列表。

根本原因:
每个 TTS 服务商(如 Edge-TTS、阿里云、Azure 等)都有自己独立的角色名称列表。软件在切换 TTS 渠道时,角色列表会随之改变。您当前的角色列表是阿里云 Qwen-TTS 的,其中不包含 Edge-TTS 的角色“Serena”,因此调用失败。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions