#5462 代理地址:http://127.0.0.1:7897

64.118* Posted at: 2 hours ago

语音识别阶段出错[WhisperX(本地API)] [WhisperX] 该渠道需另行部署并启动后可用
Request timed out.
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 101, in handle_request

File "httpcore\_sync\http11.py", line 143, in handle_request

File "httpcore\_sync\http11.py", line 113, in handle_request

File "httpcore\_sync\http11.py", line 186, in _receive_response_headers

File "httpcore\_sync\http11.py", line 224, in _receive_event

File "httpcore\_backends\sync.py", line 124, in read

File "contextlib.py", line 153, in exit

File "httpcore\_exceptions.py", line 14, in map_exceptions

httpcore.ReadTimeout: timed out

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.ReadTimeout: timed out

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 1055, in request

openai.APITimeoutError: Request timed out.

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] 该渠道需另行部署并启动后可用
Request timed out.
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: G:/新建文件夹/wq/Pierre Woodman Casting[leporno.org]/37 - Pierre Woodman - Julia.avi,
输出结果保存到文件夹: G:/新建文件夹/wq/Pierre Woodman Casting[leporno.org]/_video_out/37 - Pierre Woodman - Julia-avi,
临时文件夹: D:/Tool/win-pyvideotrans-v4.03-0622/tmp/7124/278543f9f7
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:WhisperX(本地API), model_name: distil-large-v3.5, 发音语言: 英语, 断句方式:默认断句
翻译渠道:OpenAI ChatGPT,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:7897


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

1 Replies

问题根源:WhisperX 属于需要自行在本地部署并启动服务的渠道,当前软件无法连接到该服务,请求超时(Request timed out)。

连续超时通常由以下原因之一导致:


解决方案

1. 确认 WhisperX 服务已启动

  • 如果你尚未部署 WhisperX,需先在本地按照其官方指引部署,并确保 API 服务处于运行状态。
  • 启动后默认监听地址通常为 http://127.0.0.1:8000(或你自定义的端口)。

2. 检查软件中填写的 API 地址

  • 打开 菜单 → 语音识别设置 → WhisperX 面板,确认 API地址 与启动的实际地址完全一致(例如 http://127.0.0.1:8000)。
  • 注意:地址不可是 0.0.0.0,必须写 127.0.0.1

3. 本地服务请关闭代理或绕过代理

  • 你当前填写了代理 http://127.0.0.1:7897,本地 WhisperX 服务不应该走代理,否则请求会被转发到外部,导致超时。
  • 解决方法:在软件网络代理框中清空代理内容(或保存空值),让本地直连。
  • 若想保留代理用于其他操作,可在软件根目录创建一个空文件 no_proxy.txt,强制本地请求绕过代理(但最稳妥仍是清空代理)。

4. 确认服务端口未被防火墙拦截

  • 检查 Windows 防火墙是否阻止了 WhisperX 使用的端口。

5. 替换为内置渠道作为临时替代

  • 如果不想部署 WhisperX,可更换为内置的 faster-whisper(本地) + 模型 large-v3,勾选 CUDA 加速,效果同样优秀且无需额外部署。

请查阅相关文档:

如果仍无法解决,请提供 WhisperX 服务的启动日志(显示监听端口等)以及软件日志 logs/ 中最新的完整日志内容。

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