#3147 TaskCfg(cache_folder='D:/Green Softwares/Videotrans/videotrans/tmp/49100/96bdabc16f', target_dir='W:/Local/F(StoreHouse)

23.177* Posted at: 9 days ago 👁39

语音识别阶段出错 [Gemini大模型识别] Internal error encountered.
Traceback (most recent call last):
File "videotrans\recognition\_gemini.py", line 88, in _req
File "google\genai\models.py", line 5407, in generate_content_stream
File "google\genai\models.py", line 4101, in _generate_content_stream
File "google\genai\_api_client.py", line 1405, in request_streamed
File "google\genai\_api_client.py", line 1224, in _request
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 420, in exc_check
File "tenacity\__init__.py", line 187, in reraise
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "google\genai\_api_client.py", line 1189, in _request_once
File "google\genai\errors.py", line 121, in raise_for_response
File "google\genai\errors.py", line 148, in raise_error
google.genai.errors.ServerError: 500 INTERNAL. {'error': {'code': 500, 'message': 'Internal error encountered.', 'status': 'INTERNAL'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\trans_create.py", line 358, in recogn
File "videotrans\recognition\__init__.py", line 267, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_gemini.py", line 117, in _exec
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 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_gemini.py", line 100, in _req
videotrans.configure._except.StopRetry: Internal error encountered.
TaskCfg(cache_folder='D:/Green Softwares/Videotrans/videotrans/tmp/49100/96bdabc16f', target_dir='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language='日语', target_language='简体中文', source_language_code='ja', target_language_code='zh-cn', source_sub='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4/ja.srt', target_sub='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4/zh-cn.srt', source_wav='D:/Green Softwares/Videotrans/videotrans/tmp/49100/96bdabc16f/ja.wav', source_wav_output='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4/ja.m4a', target_wav='D:/Green Softwares/Videotrans/videotrans/tmp/49100/96bdabc16f/target.wav', target_wav_output='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4/zh-cn.m4a', subtitles='', novoice_mp4='D:/Green Softwares/Videotrans/videotrans/tmp/49100/96bdabc16f/novoice.mp4', noextname='[TYSON] 押忍!!魁男子校 4', shibie_audio=None, targetdir_mp4='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/_video_out/[TYSON] 押忍!!魁男子校 4-mp4/[TYSON] 押忍!!魁男子校 4.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=True, clear_cache=True, translate_type=5, tts_type=0, recogn_type=6, model_name='tiny', voice_autorate=False, video_autorate=False, cuda=True, name='W:/Local/F(StoreHouse)/Others/youknow-new/Factory/KTSV/[TYSON] 押忍!!魁男子校 4.mp4', basename='[TYSON] 押忍!!魁男子校 4.mp4', ext='mp4', dirname='//RaiDrive-SeamusWong/Alist-DELL/Local/F(StoreHouse)/Others/youknow-new/Factory/KTSV', shound_del_name=None, uuid='96bdabc16f', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=1, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/Green Softwares/Videotrans/videotrans

1 Replies

这是由于 Gemini 语音识别 API 服务端返回了 500 内部错误。

  1. 问题原因:错误信息 google.genai.errors.ServerError: 500 INTERNAL. {'error': {'code': 500, 'message': 'Internal error encountered.', 'status': 'INTERNAL'}} 表明,这是由 Google Gemini 服务器端自身的问题导致的,并非你的本地配置或网络问题。可能是服务器暂时过载、模型服务异常或 API 调用参数触发了服务端错误。
  2. 解决方案

    • 等待并重试:这是最常见的解决方法。等待几分钟到几小时,然后重新运行任务。服务器端问题通常会自行恢复。
    • 检查 API Key 和配额:确认你的 Google AI Studio API Key 有效,且未超出使用配额或限制。
    • 切换语音识别渠道:如果问题持续存在,建议暂时切换到其他语音识别渠道,例如:

      • 本地模型faster-whisper (推荐 large-v3 模型,对日语识别效果好)。
      • 其他在线 API:OpenAI Whisper API、阿里百炼 Qwen3-ASR、字节火山极速版等。
    • 检查视频/音频文件:确保待识别的视频或音频文件格式正常,没有损坏。可以尝试用其他软件播放确认。
    • 简化任务:如果视频较长,可以尝试先提取一小段音频进行识别测试,以排除是特定音频内容触发了服务器错误。

请查阅相关文档:

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