语音识别阶段出错 [openai-whisper(本地)] 连接被拒绝,目标服务可能未运行或端口错误
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, in recogn
File "videotrans\recognition\__init__.py", line 245, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_overall.py", line 182, in _exec
RuntimeError: Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1282, in request
File "http\client.py", line 1328, in _send_request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "http\client.py", line 1447, in connect
File "http\client.py", line 941, in connect
File "socket.py", line 845, in create_connection
File "socket.py", line 833, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\process\_overall.py", line 114, in run
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:
TaskCfg(cache_folder='C:/pyvideotrans/tmp/5312/ee3e9b03ee', target_dir='c:/pyvideotrans/output/recogn', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='c:/pyvideotrans/output/recogn/08 - Lauterbrunnen. The valley of waterfalls and mountain peaks. Switzerland. Aerial 360 video in 12K..srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='08 - Lauterbrunnen. The valley of waterfalls and mountain peaks. Switzerland. Aerial 360 video in 12K.', shibie_audio='C:/pyvideotrans/tmp/5312/ee3e9b03ee/08 - Lauterbrunnen. The valley of waterfalls and mountain peaks. Switzerland. Aerial 360 video in 12K.-1775100151.172222.wav', 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=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=1, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='C:/B站/YouTube的音频/Relax 360 videos - ad/08 - Lauterbrunnen. The valley of waterfalls and mountain peaks. Switzerland. Aerial 360 video in 12K..m4a', basename='08 - Lauterbrunnen. The valley of waterfalls and mountain peaks. Switzerland. Aerial 360 video in 12K..m4a', ext='m4a', dirname='C:/B站/YouTube的音频/Relax 360 videos - ad', shound_del_name=None, uuid='ee3e9b03ee', remove_silent_mid=False, align_sub_audio=True, enable_diariz=True, nums_diariz=0, rephrase=2, only_out_mp4=False)
=
system:Windows-10-10.0.22631-SP0
version:v3.92
frozen:True
language:zh
root_dir:C:/pyvideotrans