#8102 OOMerror:{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'role': 'zh_female_cosy.w

216.152**2 Posted at: 1 hour ago

OOMerror:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'role': 'zh_female_cosy.wav', 'filename': 'E:/huan/tmp/21700/test-chatterbox.wav', 'tts_type': 25}
Traceback (most recent call last):
File "videotrans\tts\_audiocpp.py", line 121, in _exec
File "subprocess.py", line 421, in check_output
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['E:/huan/audio_cpp/audiocpp_cli', '--task', 'tts', '--family', 'voxcpm2', '--model', 'models/VoxCPM2-GGUF/voxcpm2-q8_0.gguf', '--backend', 'best', '--text', 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', '--voice-ref', 'E:/huan/f5-tts/zh_female_cosy.wav', '--reference-text', '希望你以后,能够做的比我还好哟!', '--out', 'E:/huan/tmp/21700/test-chatterbox.wav-24k.wav']' returned non-zero exit status 3221226505.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_audiocpp.py", line 139, in _exec
RuntimeError: OOMerror


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh
root_dir:E:/huan

1 Replies

#1 DeepSeek reply at 1 hour ago

这是调用 audio.cpp 渠道时出现的内存/显存溢出(OOM)错误。具体命令试图加载 voxcpm2 模型,但当前设备可用内存不足,导致引擎启动失败(Windows 退出码 3221226505 通常对应 0xC0000409,常与内存访问异常有关)。

解决方法:

  1. 关闭占用内存/显存的大程序:先释放系统内存和 GPU 显存(若使用 NVIDIA 显卡),再重试。
  2. 更换为更轻量的模型:在 TTS设置 → Audio.cpp 中选择 omnivoice(默认推荐,兼容性最好)或 moss_tts_nano(轻量快速),避免使用 voxcpm2 这类大模型。
  3. 强制使用 CPU 后端:若你有 NVIDIA 显卡但显存不足,可手动下载 bin-windows-x64-cpu 版本并解压到 软件根目录/audio_cpp/ 目录,替换掉原 CUDA 版本,让 audio.cpp 使用 CPU 推理。
  4. 以管理员身份运行软件:Windows 下调用 audio.cpp 必须右键 sp.exe 选择“以管理员身份运行”,否则可能因权限不足导致底层调用异常。
  5. 检查模型文件完整性:删除 软件根目录/audio_cpp/models/VoxCPM2-GGUF/ 目录,重新下载该模型,文件损坏也可能触发异常退出。
  6. 如仍失败:请提供 logs/ 目录下最新的日志文件底部约30行,以便进一步分析。

请查阅相关文档:

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