#2973 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.95/tmp/30408/f6312853d7', target_dir='D:/win-pyvideotrans-v3.95/output/tts'

103.151* Posted at: 18 days ago 👁39

配音阶段出错 [Azure(免费试用)] Queue tts length is 0
Traceback (most recent call last):
File "videotrans\task\job.py", line 214, in run
File "videotrans\task\_dubbing.py", line 52, in dubbing
File "videotrans\task\_dubbing.py", line 220, in _tts
RuntimeError: Queue tts length is 0
TaskCfg(cache_folder='D:/win-pyvideotrans-v3.95/tmp/30408/f6312853d7', target_dir='D:/win-pyvideotrans-v3.95/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='zh-cn', source_sub=None, target_sub='D:/win-pyvideotrans-v3.95/tmp/30408/20260129-204425.txt', source_wav=None, source_wav_output=None, target_wav='D:/win-pyvideotrans-v3.95/output/tts/20260129-204425.wav', target_wav_output=None, subtitles='', novoice_mp4=None, noextname='20260129-204425', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoxiao:DragonHDFlashLatestNeural(Female)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=27, recogn_type=None, model_name=None, voice_autorate=False, video_autorate=False, cuda=False, name='D:/win-pyvideotrans-v3.95/tmp/30408/20260129-204425.txt', basename='20260129-204425.txt', ext='txt', dirname='D:/win-pyvideotrans-v3.95/tmp/30408', shound_del_name=None, uuid='f6312853d7', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.26100-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.95

1 Replies

这是由于 Azure TTS 配音渠道在生成语音时,队列长度为 0,通常意味着没有成功获取到可用的语音数据或 API 调用失败。

解决方案:

  1. 检查 Azure TTS 配置:确认在“配音设置”->“AzureTTS”中已正确填写了 api_keyregion(例如 eastus)。免费试用账户的密钥和区域必须准确无误。
  2. 验证网络连接:确保你的网络可以正常访问 Azure 的 TTS 服务端点。如果网络受限,可能需要配置网络代理。
  3. 降低并发请求:在“高级选项”中,将“同时配音线程数”设置为 1,并将“配音后暂停秒数”设置为 5-10秒,以避免因请求频率过高导致服务端拒绝或返回空数据。
  4. 检查输入文本:确认你用于配音的文本文件(D:/win-pyvideotrans-v3.95/tmp/30408/20260129-204425.txt)内容非空且格式正确。
  5. 尝试其他配音渠道:作为临时解决方案,可以切换到其他稳定的配音渠道,例如 Edge-TTS(免费)进行测试,以排除是否是 Azure 服务端临时问题。

请查阅相关文档:

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