语音识别阶段出错[Google识别API(免费)] speech_recognition.exceptions.RequestError: recognition request failed: Service Unavailable
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 93, in run
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 54, in run
File "videotrans\task\job.py", line 119, in process_task
File "videotrans\task\trans_create.py", line 320, in recogn
File "videotrans\recognition\__init__.py", line 190, in run
File "videotrans\recognition\_base.py", line 99, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_google.py", line 57, in _exec
File "speech_recognition\__init__.py", line 710, in recognize_google
speech_recognition.exceptions.RequestError: recognition request failed: Service Unavailable
TaskCfgVTT(uuid='8bca9e0adb', name='C:/Users/46354/Desktop/JIGSAW/Jigsaw The Stephen Kelly trading method - 2.mp4', dirname='C:/Users/46354/Desktop/JIGSAW', noextname='Jigsaw The Stephen Kelly trading method - 2', basename='Jigsaw The Stephen Kelly trading method - 2.mp4', ext='mp4', target_dir='C:/Users/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4', cache_folder='D:/软件/pyVideoTrans/解压后应用程序/tmp/24128/8bca9e0adb', is_cuda=False, source_language='英语', source_language_code='en', source_sub='C:/Users/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4/en.srt', source_wav='D:/软件/pyVideoTrans/解压后应用程序/tmp/24128/8bca9e0adb/en.wav', source_wav_output='C:/Users/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4/zh-cn.srt', target_wav='D:/软件/pyVideoTrans/解压后应用程序/tmp/24128/8bca9e0adb/target.wav', target_wav_output='C:/Users/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Yunyang(Male/CN)', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False, detect_language='en', recogn_type=17, model_name='large-v3', 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/46354/Desktop/fanyi/Jigsaw The Stephen Kelly trading method - 2-mp4/Jigsaw The Stephen Kelly trading method - 2.mp4', novoice_mp4='D:/软件/pyVideoTrans/解压后应用程序/tmp/24128/8bca9e0adb/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/软件/pyVideoTrans/解压后应用程序/tmp/24128/8bca9e0adb/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=True, recogn2pass=True, 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:/软件/pyVideoTrans/解压后应用程序