#1397 {'reqid': '', 'code': 55000000, 'message': 'json: cannot unmarshal number 14.999999999999991 into Go struct field AudioP

106.8* Posted at: 4 hours ago 👁11

{'reqid': '', 'code': 55000000, 'message': 'json: cannot unmarshal number 14.999999999999991 into Go struct field AudioParams.req_params.audio_params.speech_rate of type int32'}


=
system:Windows-10-10.0.19045-SP0
version:v3.83
frozen:True
language:zh
root_dir:C:/Users/lrx23/Downloads/win-videotrans-v3.83

1 Replies

这个错误提示表明在调用字节跳动火山引擎的 TTS(语音合成)服务时,传入的语速参数 speech_rate 类型不正确。服务端期望接收一个整数(int32),但软件传递了一个浮点数(14.999999999999991)。

解决方案:

  1. 临时切换配音渠道:目前这是一个已知的兼容性问题。作为临时解决方案,请先使用其他配音渠道,例如 Edge-TTSAzure TTS
  2. 等待修复:此问题已反馈给开发者,预计会在后续版本中修复。请关注软件的更新通知。
  3. 手动修改(高级用户):如果您熟悉代码,可以尝试在软件源码中定位到调用火山引擎 TTS 的部分,将 speech_rate 参数强制转换为整数(例如 int(speech_rate))。但对于使用预打包版的普通用户,不建议此操作。

建议您优先采用第一种方案,切换至其他可用的配音渠道来完成当前任务。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions