语音识别阶段出错:[WhisperX] 网络连接失败:
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "openai\_base_client.py", line 982, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 365, in recogn
File "videotrans\recognition\__init__.py", line 222, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_whisperx.py", line 46, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 406, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1014, in request
openai.APIConnectionError: Connection error.
TaskCfg(cache_folder='E:/AI/【视频语音互相转】win-pyvideotrans-3.90/tmp/15928/8d034176d4', target_dir='D:/下载/_video_out/index_01-wav', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='简体中文', source_language_code='zh-cn', target_language_code='zh-cn', source_sub='D:/下载/_video_out/index_01-wav/zh-cn.srt', target_sub='D:/下载/_video_out/index_01-wav/zh-cn.srt', source_wav='E:/AI/【视频语音互相转】win-pyvideotrans-3.90/tmp/15928/8d034176d4/zh-cn.wav', source_wav_output='D:/下载/_video_out/index_01-wav/zh-cn.m4a', target_wav='E:/AI/【视频语音互相转】win-pyvideotrans-3.90/tmp/15928/8d034176d4/target.wav', target_wav_output='D:/下载/_video_out/index_01-wav/zh-cn.m4a', subtitles='', novoice_mp4='E:/AI/【视频语音互相转】win-pyvideotrans-3.90/tmp/15928/8d034176d4/novoice.mp4', noextname='index_01', shibie_audio=None, targetdir_mp4='D:/下载/_video_out/index_01-wav/index_01.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=0, tts_type=0, recogn_type=17, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='D:/下载/index_01.wav', basename='index_01.wav', ext='wav', dirname='D:/下载', shound_del_name=None, uuid='8d034176d4', remove_silent_mid=True, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=1, only_out_mp4=False)