#5107 TaskCfgSTT(uuid='8b46353aa1', name='E:/DownLoad/DCL/Wie_Die_Mutter_So_Der_Sohn_1080.mp4', dirname='E:/DownLoad/DCL', noe

106.61* Posted at: 2 hours ago

语音识别阶段出错[openai-whisper(本地)] :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 836, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
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:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\speech2text.py", line 126, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "videotrans\recognition\_base.py", line 94, in run

File "videotrans\recognition\_whisper.py", line 34, in _exec

File "videotrans\recognition\_whisper.py", line 77, in _openai

File "videotrans\configure\base.py", line 253, in _new_process

videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 836, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
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:
TaskCfgSTT(uuid='8b46353aa1', name='E:/DownLoad/DCL/Wie_Die_Mutter_So_Der_Sohn_1080.mp4', dirname='E:/DownLoad/DCL', noextname='Wie_Die_Mutter_So_Der_Sohn_1080', basename='Wie_Die_Mutter_So_Der_Sohn_1080.mp4', ext='mp4', target_dir='D:/win-pyvideotrans-v4.01-0602/output/recogn', cache_folder='D:/win-pyvideotrans-v4.01-0602/tmp/10260/8b46353aa1', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/win-pyvideotrans-v4.01-0602/output/recogn/Wie_Die_Mutter_So_Der_Sohn_1080.srt', target_wav=None, target_wav_output=None, detect_language='de', recogn_type=1, model_name='large-v3-turbo', shibie_audio='D:/win-pyvideotrans-v4.01-0602/tmp/10260/8b46353aa1/Wie_Die_Mutter_So_Der_Sohn_1080-1781088532.736456.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.26100-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v4.01-0602

1 Replies

这是由于 网络连接失败getaddrinfo failed)导致 openai-whisper(本地) 在下载模型时无法访问外部服务器。large-v3-turbo 等模型需在线下载,但你的网络环境可能无法直接连接 huggingface.co(或被墙)。

解决方法(任选其一):

  1. 配置网络代理:在主界面的“网络代理地址”文本框中填入你的代理地址,格式如 http://127.0.0.1:10809(端口号根据你的代理客户端填写)。
    (如果已有代理但未填写,请确保填写正确;若没有代理,采用方法 2。)
  2. 手动下载模型

    • 根据你使用的模型(large-v3-turbo),在 models 文件夹下创建 models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 文件夹(注意:openai-whisper 渠道实际使用 large-v3-turbo 模型,但 openai-whisper 的模型命名与 faster-whisper 不同,请参考文档手动下载)。
      更稳妥的做法是:切换到 faster-whisper(本地) 渠道,然后按 手动下载 faster-whisper 模型 的说明,将模型文件放入 models/models--Systran--faster-whisper-large-v3 (或其他模型)目录。
    • 或者直接改用 faster-whisper(本地) + 已手动下载好的模型。
  3. 临时对策:改用无需下载模型的语音识别渠道,如 字节语音大模型极速版阿里百炼 Qwen3-ASR(需在线 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. Dondate: ko-fi.com/jianchang512

Related resource