#6426 VoxCPM.__init__() got an unexpected keyword argument 'dtype':Traceback (most recent call last):

117.50.**8 Posted at: 1 hour ago

VoxCPM.__init__() got an unexpected keyword argument 'dtype':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 183, in run
File "videotrans\tts\_base.py", line 132, in run
videotrans.configure.excepts.DubbingSrtError: VoxCPM.__init__() got an unexpected keyword argument 'dtype'


=
system:Windows-10-10.0.20348-SP0
version:v4.00
frozen:True
language:zh
root_dir:C:/Users/Administrator/Desktop/6.2/win-pyvideotrans-v4.00-528

1 Replies

该报错是 VoxCPM 配音渠道的内部调用参数不匹配(dtype 参数不被当前 VoxCPM 库接受),很可能是 VoxCPM 相关依赖版本不一致或本地部署环境不完整导致。暂时无法从现有资料中确定该错误的确切修复方法,请按以下步骤排查:

  1. 确认你确实已选择 VoxCPM-TTS 渠道,并已按官方要求完成本地部署和启动;在软件对应设置面板中填写正确的 API 地址(本地 API 需自行部署,并非开箱即用)。
  2. 当前版本为 v4.00,建议先升级到最新版本 v4.08-0802(可下载完整包或补丁包覆盖),再重试。
  3. 若升级后仍出现同样错误,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约 30 行报错信息),并说明 VoxCPM 的部署方式及版本号,以便进一步定位。

如果暂时不需要 VoxCPM,可先切换到 Edge-TTSQwen3-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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource