#5201 videotrans.configure.excepts.DubbingSrtError: VoxCPM.__init__() got an unexpected keyword argument 'dtype'

117.50* 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:/win-pyvideotrans-v4.00-528

1 Replies

VoxCPM 初始化时传入了不支持的关键字参数 dtype,这通常是由于软件版本与 VoxCPM 本地部署服务间的接口不匹配,或者本地部署的 VoxCPM 服务未正确启动/版本过旧导致。

建议按以下步骤排查:

  1. 检查 VoxCPM 服务是否正常启动:确保你已按照 F5/Spark/Index/voxpcm/Dia-TTS 文档正确部署并启动了 VoxCPM 的 API 服务,且服务地址填写正确(默认 http://127.0.0.1:7860)。
  2. 更新软件:当前版本 v4.00 可能存在此 Bug,请前往官网下载最新完整版或补丁包覆盖升级。
  3. 提供完整日志:若问题依旧,请复制软件安装目录下 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