#1660 KeyError: 'ref_wav'

2400:e920* Posted at: 10 days ago 👁41

处理数据时缺少必需的键:'ref_wav':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 295, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_clone.py", line 54, in _run
KeyError: 'ref_wav'


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/PY

1 Replies

这个错误表明您在使用语音克隆功能(如 GPT-SoVITS)时,没有提供必需的参考音频文件 ref_wav

请按以下步骤解决:

  1. 确认克隆角色:在配音角色列表中,确保您选择的是一个带有 [Clone] 标识的角色。
  2. 上传参考音频

    • 当您选择 [Clone] 角色后,软件会弹出一个文件选择窗口。
    • 您必须在此窗口中选择一个清晰的、包含目标人声的 .wav 格式音频文件作为参考音。
    • 这个参考音频是语音克隆模型生成声音所必需的。

如果您没有提前准备参考音频,请先使用其他 TTS 服务(如 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.

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

Trending Questions