#5416 语音识别阶段出错[WhisperX(本地API)] [WhisperX] 该渠道需另行部署并启动后可用Connection error.Traceback (most recent call last):File "httpx\_trans

64.118* Posted at: 13 hours ago

语音识别阶段出错[WhisperX(本地API)] [WhisperX] 该渠道需另行部署并启动后可用
Connection error.
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: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "openai\_base_client.py", line 1037, in request

File "openai\_client.py", line 440, in _send_request

File "openai\_client.py", line 418, in _send_with_auth_retry

File "openai\_base_client.py", line 964, in _send_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: [Errno 11001] getaddrinfo failed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "videotrans\recognition\_whisperx.py", line 32, in _exec

File "openai\_utils\_utils.py", line 298, in wrapper

File "openai\resources\audio\transcriptions.py", line 485, in create

File "openai\_base_client.py", line 1332, in post

File "openai\_base_client.py", line 1072, in request

openai.APIConnectionError: Connection error.

The above exception was the direct cause of the following exception:

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\trans_create.py", line 319, in recogn

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

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

File "videotrans\recognition\_whisperx.py", line 60, in _exec

videotrans.configure.excepts.StopTask: [WhisperX] 该渠道需另行部署并启动后可用
Connection error.
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: G:/新建文件夹/zz/@gbg60_5576_asuna_love.24.04.19.mp4,
输出结果保存到文件夹: G:/新建文件夹/zz/_video_out/@gbg60_5576_asuna_love.24.04.19-mp4,
临时文件夹: D:/Tool/win-pyvideotrans-v4.03-0622/tmp/25888/ec50044074
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:WhisperX(本地API), model_name: distil-large-v3.5, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/Tool/win-pyvideotrans-v4.03-0622

3 Replies

ll

WhisperX 渠道需要您自行在本地部署并启动服务。错误信息 getaddrinfo failed 表示软件无法连接到该 API 地址(通常是因为服务未运行或地址配置错误)。

解决方案:

  1. 部署并启动 WhisperX 服务:按照 WhisperX 官方文档在您的机器上安装并启动服务,确保服务监听在 127.0.0.1 的某个端口(例如默认端口)。
  2. 配置 API 地址:在 pyVideoTrans 菜单 → 语音识别设置 → WhisperX 面板中,填写正确的 API 地址(形如 http://127.0.0.1:端口号/)。
  3. 改用内置渠道:如果不想自行部署,请切换为内置的 faster-whisper(本地)openai-whisper(本地),它们开箱即用,无需额外部署。

请查阅相关文档:

WhisperX 是本地 API 渠道,需要您自行部署并启动服务。getaddrinfo failed 错误表明软件无法通过网络连接到该服务的 API 地址。请依次排查:

  1. 检查服务是否启动:WhisperX 服务是否已在您的机器上运行,并监听在正确的端口(通常默认 http://127.0.0.1:端口号)。
  2. 核对 API 地址:进入软件菜单 → 语音识别设置 → WhisperX 面板,确保填写的 API 地址正确(形如 http://127.0.0.1:端口号/)。
  3. 切换到内置渠道:如果您不想自行部署,请改用 faster-whisper(本地)openai-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: ko-fi.com/jianchang512

Related resource

Similar issues already exist