#762 RuntimeError: GPT-SoVITS返回错误信息-1:{'message': 'tts failed', 'Exception': 'hlbshouxia.wav not exists'} GPTSoVITS

*96.244* Posted at: 3 hours ago 👁4

GPT-SoVITS返回错误信息-1:{'message': 'tts failed', 'Exception': 'hlbshouxia.wav not exists'} GPTSoVITS:Traceback (most recent call last):

File "videotrans\util\ListenVoice.py", line 18, in run

File "videotrans\tts\__init__.py", line 474, in run

File "videotrans\tts\_base.py", line 142, in run

RuntimeError: GPT-SoVITS返回错误信息-1:{'message': 'tts failed', 'Exception': 'hlbshouxia.wav not exists'} GPTSoVITS

=====

Windows-10-10.0.22631-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是因为 GPT-SoVITS 语音合成服务缺少所需的参考音频文件 hlbshouxia.wav。GPT-SoVITS 需要参考音频来学习音色特征,如果指定的参考音频不存在,就会报错。

解决方案:

1. 检查参考音频文件:确认 hlbshouxia.wav 文件是否存在于正确的位置。GPT-SoVITS 的参考音频应该放在 GPT-SoVITS 服务端的指定目录中(通常是 refer_wav 目录),而不是 pyVideoTrans 的目录。

2. 重新设置发音人

  • 在 pyVideoTrans 的 TTS 设置中,找到 GPT-SoVITS 配置
  • 重新选择或输入正确的发音人名称
  • 确保 GPT-SoVITS 服务端确实有这个发音人对应的参考音频文件

3. 重启 GPT-SoVITS 服务

  • 停止当前运行的 GPT-SoVITS 服务
  • 重新启动服务,确保所有参考音频文件加载正常

4. 验证服务连接

  • 在 pyVideoTrans 的 TTS 设置中测试 GPT-SoVITS 连接
  • 确认 API 地址和端口配置正确

这个错误通常是由于 GPT-SoVITS 服务端的参考音频文件缺失或配置不匹配导致的,与 pyVideoTrans 软件本身无关。请检查您的 GPT-SoVITS 服务部署情况。

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