#7001 Reference audio is empty after silence removal. Try setting preprocess_prompt=False.,Traceback (most recent call last):

212.107**4 Posted at: 1 hour ago

Reference audio is empty after silence removal. Try setting preprocess_prompt=False.,Traceback (most recent call last):
File "videotrans\process\omnivoice_tts.py", line 74, in omnivoice_fun
File "C:\Users\orfav\Documents\win-pyvideotrans\_internal\torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "omnivoice\models\omnivoice.py", line 567, in generate

voice_clone_prompt=voice_clone_prompt,

File "omnivoice\models\omnivoice.py", line 959, in _preprocess_all
File "omnivoice\models\omnivoice.py", line 675, in create_voice_clone_prompt

logger.warning(

ValueError: Reference audio is empty after silence removal. Try setting preprocess_prompt=False.

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_omnivoice.py", line 41, in _exec
File "videotrans\configure\base.py", line 270, in _new_process
videotrans.configure.excepts.VideoTransError: Reference audio is empty after silence removal. Try setting preprocess_prompt=False.,Traceback (most recent call last):
File "videotrans\process\omnivoice_tts.py", line 74, in omnivoice_fun
File "C:\Users\orfav\Documents\win-pyvideotrans\_internal\torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "omnivoice\models\omnivoice.py", line 567, in generate

voice_clone_prompt=voice_clone_prompt,

File "omnivoice\models\omnivoice.py", line 959, in _preprocess_all
File "omnivoice\models\omnivoice.py", line 675, in create_voice_clone_prompt

logger.warning(

ValueError: Reference audio is empty after silence removal. Try setting preprocess_prompt=False.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/orfav/Desktop/Doing/老公的白月光回国我连夜备好离婚协议 (1).mp4,
输出结果保存到文件夹: C:/Users/orfav/Desktop/Doing/_video_out/老公的白月光回国我连夜备好离婚协议 (1)-mp4,
临时文件夹: C:/Users/orfav/Documents/win-pyvideotrans/tmp/28188/1285fcbab6
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量4
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+10%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/Users/orfav/Documents/win-pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:OmniVoice 在克隆音色时,会先从原始视频中截取与字幕时间轴对应的音频片段作为参考音频,并进行静音去除。报错表明截取的参考音频在去除静音后为空,说明该音频片段几乎全是静音(可能落在说话间隙),或该片段过短。

解决步骤

  1. 调整语音识别参数,让字幕片段足够长且非静音。打开 菜单 -> 工具 -> 高级选项 -> 语音识别参数

    • 最长语音持续(秒):设为 6-10
    • 最短语音持续(毫秒):设为 3000-4000
    • 勾选 合并过短字幕到邻近
    • 勾选 Whisper预分割音频?(用于提高克隆可靠性)
  2. 核查人声分离结果。你已勾选 分离人声与背景声,请检查输出文件夹 C:/Users/orfav/Desktop/Doing/_video_out/老公的白月光回国我连夜备好离婚协议 (1)-mp4/vocal.wav 文件:

    • 用播放器试听,确认人声清晰、无长段静音。
    • 若 vocal.wav 异常,可取消 分离人声背景声 重试。
  3. 删除缓存重新处理:在主界面勾选 清理已生成,避免复用之前生成的不合格字幕/音频。
  4. 更换配音渠道:若以上调整后仍报错,说明该视频某些音频片段不适合 OmniVoice 克隆。可改用 Qwen3-TTS(内置)Confucius-TTS(内置),同样支持 clone 角色且对参考音频要求更宽松。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource