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

38.207* 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(本地API) 渠道,但本地WhisperX服务未启动或API地址配置不正确,软件无法连接到该服务导致超时。

解决方案:

  1. 部署并启动 WhisperX 服务:WhisperX 需要您自行在本地或服务器上部署并运行其 API 服务。

    • 参考官方部署文档启动服务后,软件会自动使用其 API。
    • 启动后确保服务监听地址与软件中配置的 API 地址一致(默认通常为 http://127.0.0.1:9000)。
  2. 检查软件中 WhisperX 的 API 地址设置

    • 进入主菜单 → 语音识别设置 → WhisperX 面板,确认填写的 API 地址正确(例如 http://127.0.0.1:服务端口)。
    • 地址不能为 0.0.0.0,应改为 127.0.0.1
  3. 临时禁用代理:您当前设置了代理 http://127.0.0.1:9092,该代理可能会干扰本地回环连接。请清空软件主界面的“网络代理”框,保存后重试。
  4. 验证服务是否可访问:在浏览器中访问 WhisperX 的 API 地址(例如 http://127.0.0.1:9000/docs),看是否返回接口文档页面。

请查阅相关文档:

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