#5199 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:/Users/Administrator/Desktop/6.2

1 Replies

VoxCPM.__init__() 收到了不支持的 dtype 参数,这通常是因为软件版本与本地部署的 VoxCPM 服务接口不匹配,或代码传递了无效参数导致的。

解决方案:

  1. 升级软件至最新版 v4.02
    旧版本可能存在与 VoxCPM 接口的兼容性 bug。请下载最新完整版或补丁覆盖升级。
  2. 检查本地部署的 VoxCPM 服务
    VoxCPM 需要自行启动 API 服务(默认 http://127.0.0.1:7860)。请确认:

    • 服务已正常运行,且部署的版本与软件要求的接口一致。
    • 无需手动调整 dtype 参数,保持默认配置。
  3. 重置 VoxCPM 渠道设置
    进入 菜单 → TTS 设置 → F5TTS 设置,删除已填写的额外参数(如 dtype),仅保留 API 地址,点击保存后重试。
  4. 若问题依旧,请提供软件目录下 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