#5876 {"message":"tts failed","Exception":"Error opening 'XiGua.wav': Error in WAV/W64/RF64 file. Malformed 'fmt ' chunk."}sel

240e:3a3* Posted at: 3 hours ago

{"message":"tts failed","Exception":"Error opening 'XiGua.wav': Error in WAV/W64/RF64 file. Malformed 'fmt ' chunk."}
self.api_url='http://127.0.0.1:9880/tts':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: {"message":"tts failed","Exception":"Error opening 'XiGua.wav': Error in WAV/W64/RF64 file. Malformed 'fmt ' chunk."}
self.api_url='http://127.0.0.1:9880/tts'


=
system:Windows-10-10.0.26100-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/AI换声/win-videotrans

1 Replies

XiGua.wav 文件损坏或格式不符合要求(WAV文件头中fmt 块损坏)。GPT-SoVITS 要求参考音频为 16kHz 单声道 PCM 编码的 WAV 格式,且文件不能损坏。

解决方法:

  1. 使用 FFmpeg 或 Audacity 将该音频重新导出为 WAV(参数:-ar 16000 -ac 1 -sample_fmt s16)。
  2. 确保文件大小正常(非空),且时长在 3-10 秒之间。
  3. 检查文件路径是否包含中文或空格?建议改用纯英文路径再试。

若问题仍存在,请提供该 WAV 文件的详细信息(使用 ffprobe 命令的输出)以便进一步排查。

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 via ko-fi.com

Dondate via PayPal

Related resource