#1436 RuntimeError: {'reqid': '', 'code': 55000000, 'message': 'json: cannot unmarshal number 14.999999999999991 into Go struc

46.232* Posted at: 2 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'}:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 306, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_doubao2.py", line 175, in _item_task
RuntimeError: {'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

这个错误是由于在使用字节火山配音渠道时,软件传递的语速参数 speech_rate 包含小数(14.999999999999991),而字节火山的 API 接口要求该参数必须是整数类型(int32)导致的。

解决方法:

  1. 临时方案: 在软件主界面的“配音渠道”中,暂时更换为其他配音渠道(如 Edge-TTSAzure TTS)来完成当前任务。
  2. 根本解决: 此问题属于软件与字节火山API的兼容性Bug,需要开发者修复。建议您:

    • 前往项目的 GitHub Issues 页面 搜索是否已有类似问题报告。
    • 如果没有,可以提交一个新的 Issue,并将您遇到的这个完整错误日志粘贴进去,以便开发者定位和修复。

在此期间,请使用其他配音渠道作为替代方案。

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