#4780 TaskCfgVTT(uuid='2f1ccedc21', name='C:/Users/Administrator/Downloads/7642977557586906388.mp4', dirname='C:/Users/Adminis

45.78* Posted at: 11 hours ago

配音全部失败 TTS speak request failed, please verify your input and ensure the service is operational.
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 87, in run
File "videotrans\task\trans_create.py", line 630, in dubbing
File "videotrans\task\trans_create.py", line 931, in _tts
File "videotrans\tts\__init__.py", line 183, in run
File "videotrans\tts\_base.py", line 145, in run
videotrans.configure.excepts.DubbingSrtError: 配音全部失败 TTS speak request failed, please verify your input and ensure the service is operational.
TaskCfgVTT(uuid='2f1ccedc21', name='C:/Users/Administrator/Downloads/7642977557586906388.mp4', dirname='C:/Users/Administrator/Downloads', noextname='7642977557586906388', basename='7642977557586906388.mp4', ext='mp4', target_dir='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4', cache_folder='D:/Program Files/win-pyvideotrans-v4.00-528/tmp/1908/2f1ccedc21', is_cuda=False, source_language='泰国语', source_language_code='th', source_sub='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4/th.srt', source_wav='D:/Program Files/win-pyvideotrans-v4.00-528/tmp/1908/2f1ccedc21/th.wav', source_wav_output='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4/th.m4a', target_language='马来西亚语', target_language_code='ms', target_sub='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4/ms.srt', target_wav='D:/Program Files/win-pyvideotrans-v4.00-528/tmp/1908/2f1ccedc21/target.wav', target_wav_output='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4/ms.m4a', translate_type=12, tts_type=14, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='千雪(Chelsie)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='th', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/Administrator/Downloads/_video_out/7642977557586906388-mp4/7642977557586906388.mp4', novoice_mp4='D:/Program Files/win-pyvideotrans-v4.00-528/tmp/1908/2f1ccedc21/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/Program Files/win-pyvideotrans-v4.00-528/tmp/1908/2f1ccedc21/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.00
frozen:True
language:zh
root_dir:D:/Program Files/win-pyvideotrans-v4.00-528

3 Replies

错误原因是 XiaoMi-TTS 配音渠道的 API 请求失败。请按照以下步骤排查:

  1. 检查 API 配置:点击菜单栏 TTS设置 -> XiaoMi-TTS,确认已正确填写 API Key 和请求地址(通常为 https://api.mini.com/tts 等)。若无 API Key,请前往小米开放平台申请。
  2. 确认网络连通:确保软件所在电脑可以正常访问小米 TTS 服务。国内用户一般无需代理,若使用海外网络也需确保代理不影响该服务。
  3. 验证目标语言支持:当前目标语言为马来西亚语(ms),请确认 XiaoMi-TTS 是否支持该语种。若不支持,建议更换为 Edge-TTS(免费) 渠道,该渠道支持所有语言且无需配置密钥。
  4. 临时切换渠道:在主界面将“配音渠道”改为 Edge-TTS(免费),然后再次尝试执行。

请查阅相关文档:

我选择的不是XiaoMi-TTS

根据您提供的错误日志,tts_type=14 在软件中对应的是 XiaoMi-TTS 配音渠道。请再次核实软件界面上“配音渠道”下拉框的实际选中的项。如果确实不是该渠道,可能是配置未正确保存或软件版本变化导致编号偏移。建议您:

  1. 重新确认配音渠道:进入菜单栏 TTS设置 检查该渠道的 API Key 是否已配置。若无配置则必然失败。
  2. 强制刷新:关闭软件后,删除 params.json 中关于 tts_type 的记录,重新启动软件再选择渠道。
  3. 临时切换为免费 Edge-TTS:在主界面配音渠道选择 Edge-TTS(免费),该渠道无需配置且支持所有语言,可快速排除渠道选择冲突。

若问题依旧,请提供 logs/ 目录下最新日志文件的前后更多上下文,以便进一步分析。

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.

Related resource