#5137 self.api_url='http://127.0.0.1:8808'

95.40* Posted at: 1 day ago

[Errno 2] No such file or directory: 'models\openbmb__VoxCPM2\config.json'
self.api_url='http://127.0.0.1:8808':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: [Errno 2] No such file or directory: 'models\openbmb__VoxCPM2\config.json'
self.api_url='http://127.0.0.1:8808'


=
system:Windows-10-10.0.19045-SP0
version:v4.02
frozen:True
language:zh
root_dir:F:/AI/pyvideotrans

1 Replies

此错误是由于 VoxCPM2 本地模型文件缺失导致的。软件在运行该渠道时无法在 models/openbmb__VoxCPM2/ 目录下找到 config.json

解决方案:

  1. 如果你希望使用本地模型(离线运行)

    • HuggingFace openbmb/VoxCPM2 仓库 下载所有文件(包括 config.json.bin.txt 等)。
    • models/ 目录下新建文件夹 openbmb__VoxCPM2,将下载的所有文件放入其中。重启软件即可。
  2. 如果你已经本地部署了 VoxCPM2 API 服务(监听 http://127.0.0.1:8808

    • 此报错表明软件错误地尝试读取本地模型而不是调用 API。请检查软件内 TTS 渠道配置:

      • 进入 菜单 → TTS设置 → 配音渠道,确保选择的是 VoxCPM2(API) 而非本地模型模式。
      • 确认 API 地址填写正确(应为 http://127.0.0.1:8808),且服务已经启动并能正常访问。
    • 如果配置无误仍报错,可能是当前版本的一个调用 bug,建议临时切换到其他支持克隆的渠道(如 OmniVoiceF5-TTS)处理,或更新至最新版本。
  3. 验证与排错

    • 若选择本地模型,检查 models/openbmb__VoxCPM2/config.json 是否存在,存在即说明路径正确。
    • 若选择 API,在浏览器中访问 http://127.0.0.1:8808 确认服务响应正常。

如果以上操作后问题依旧,请提供 logs/ 目录下最新的完整日志(约 30 行),以便进一步分析。

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: ko-fi.com/jianchang512

Related resource

Similar issues already exist