#6037 语音识别阶段出错:[openai-whisper(本地)] 系统错误 (None):None:Traceback (most recent call last):

182.89* Posted at: 12 hours ago

语音识别阶段出错:[openai-whisper(本地)] 系统错误 (None):None:
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\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 133, in recogn
File "videotrans\recognition\__init__.py", line 195, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_openai.py", line 46, in _exec
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:


=
system:Windows-10-10.0.19045-SP0
version:v3.83
frozen:True
language:zh
root_dir:H:/老骚/win-videotrans-v3.83

1 Replies

这是模型文件下载失败导致的。openai-whisper 首次运行时需要从 Azure 服务器下载模型文件,你的网络无法连接到该下载地址。


解决方案

  1. 检查代理设置:如果你在中国大陆或需要科学上网才能访问国外网站,请在主界面底部 网络代理 处填写正确的代理地址(如 http://127.0.0.1:7890)并保存,然后重试。
  2. 手动下载模型文件:如果代理设置后仍失败,请手动下载模型文件并放到 软件目录/models/ 文件夹内:

  3. 建议使用 faster-whisper 替代openai-whisper 速度较慢且下载容易失败,建议切换到 faster-whisper(本地内置),它同样包含丰富模型,下载更稳定。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource