#5408 代理地址:http://127.0.0.1:9092

64.118* Posted at: 15 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/WoodmanCastingX.com Casting Hard (соотечественницы 08.2014-04.2016)/Taissia Shanty.mp4,
输出结果保存到文件夹: G:/新建文件夹/wq/WoodmanCastingX.com Casting Hard (соотечественницы 08.2014-04.2016)/_video_out/Taissia Shanty-mp4,
临时文件夹: D:/Tool/win-pyvideotrans-v4.03-0622/tmp/14160/ae63f41561
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:WhisperX(本地API), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:9092


=
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 本地服务未正确启动或无法连接 导致的超时错误。

根本原因

  • 您选择了 WhisperX(本地API) 渠道,但对应的本地服务尚未运行、服务地址错误、或网络代理拦截了回环连接。
  • 日志中显示代理地址为 http://127.0.0.1:9092,若您的代理软件未正确放行本地回环地址,会导致连接超时。

解决方案

  1. 确保 WhisperX 服务已启动:在系统任务管理器中检查是否存在 WhisperX 或对应的 API 服务进程,未启动则手动启动。
  2. 验证 API 地址

    • 点击 菜单 → 语音识别设置 → WhisperX,确认填写的 API 地址为 http://127.0.0.1:端口号(默认一般为 http://127.0.0.1:9000)。
    • 地址不能是 0.0.0.0,请改为 127.0.0.1
  3. 临时关闭代理:在软件主界面的 网络代理 文本框中清空所有内容,保存后重新执行任务。某些代理程序会阻止软件访问 127.0.0.1 的 API 端口。
  4. 检查防火墙:确保 Windows 防火墙未拦截软件或对应 API 端口的入站/出站连接。
  5. 测试连通性:在浏览器中直接访问 http://127.0.0.1:端口号(如 http://127.0.0.1:9000),若无法访问则说明服务未正确启动。

完成以上排查后,重新运行任务。


请查阅相关文档:

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