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

167.71* Posted at: 3 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/【bigwai】Woodman Casting X_2017-UPDATES#4/Woodman Casting X_17-12 04 ornella cyan.mp4,
输出结果保存到文件夹: G:/新建文件夹/wq/【bigwai】Woodman Casting X_2017-UPDATES#4/_video_out/Woodman Casting X_17-12 04 ornella cyan-mp4,
临时文件夹: D:/Tool/win-pyvideotrans-v4.03-0622/tmp/4072/bc119c2541
已选 清理已存在
已选 启用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

1 Replies

WhisperX(本地API) 渠道需要您自行部署服务并确保其正在运行。此 Request timed out 表明软件无法连接到您配置的 WhisperX API 地址。

请按以下步骤排查:

  1. 确认本地 WhisperX 服务已成功启动,且监听的端口与软件设置中的 API 地址一致(默认 http://127.0.0.1:9001 或其他自定义端口)。
  2. 检查软件菜单 → 工具高级选项语音识别参数 中的 WhisperX API 地址是否填写正确,确保不以 0.0.0.0 开头(应改为 127.0.0.1)。
  3. 确认防火墙未阻止该端口通信。
  4. 如果使用代理,请确保本地 API 地址被添加至代理排除列表(no_proxy),或直接关闭代理后重试。

请查阅相关文档:

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