#2902 TaskCfg(cache_folder='D:/pyVideoTrans/tmp/7364/853bd21bdb', target_dir='D:/Downloads/_video_out/The Top 10 Pony Videos o

134.195* Posted at: 23 hours ago 👁10

翻译字幕阶段出错 [Gemini AI] Gemini result is emtpy
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\trans_create.py", line 632, in trans
File "videotrans\translator\__init__.py", line 981, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 127, in _item_task
RuntimeError: Gemini result is emtpy
TaskCfg(cache_folder='D:/pyVideoTrans/tmp/7364/853bd21bdb', target_dir='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/en.srt', target_sub='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/zh-cn.srt', source_wav='D:/pyVideoTrans/tmp/7364/853bd21bdb/en.wav', source_wav_output='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/en.m4a', target_wav='D:/pyVideoTrans/tmp/7364/853bd21bdb/target.wav', target_wav_output='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/zh-cn.m4a', subtitles='', novoice_mp4='D:/pyVideoTrans/tmp/7364/853bd21bdb/novoice.mp4', noextname='The Top 10 Pony Videos of September 2025', shibie_audio=None, targetdir_mp4='D:/Downloads/_video_out/The Top 10 Pony Videos of September 2025-mp3/The Top 10 Pony Videos of September 2025.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=18, recogn_type=17, model_name='large-v3-turbo', voice_autorate=False, video_autorate=False, cuda=False, name='D:/Downloads/The Top 10 Pony Videos of September 2025.mp3', basename='The Top 10 Pony Videos of September 2025.mp3', ext='mp3', dirname='D:/Downloads', shound_del_name=None, uuid='853bd21bdb', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.22631-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/pyVideoTrans

1 Replies

翻译渠道 Gemini AI 返回了空结果。这通常是由于 Gemini API 密钥无效、网络连接问题、请求频率过高或模型暂时不可用导致的。

解决方案:

  1. 检查 API 密钥:确认在 Gemini AI 翻译渠道配置中填写的 API Key 正确且有效。
  2. 检查网络连接:确保你的网络可以正常访问 Google 的 API 服务。如果在中国大陆,可能需要配置网络代理。
  3. 降低请求并发:在“高级选项”中,将“翻译线程数”设置为 1,以减少同时请求的数量。
  4. 切换翻译渠道:暂时使用其他翻译渠道,例如 DeepSeek、OpenAI 或 Google 翻译(需配置代理或使用反代服务),以完成当前任务。
  5. 查看官方状态:访问 Google AI Studio 或相关状态页面,确认 Gemini API 服务是否正常运行。

参考文档:

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