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

64.118* Posted at: 17 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: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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:/七天(1)/2048社区 - big2048.com@【七天极品探花】 2020.11.12大胸白虎妹,极品美乳,温柔如水性格好,连干两炮激情四射.mp4,
输出结果保存到文件夹: G:/七天(1)/_video_out/2048社区 - big2048.com@【七天极品探花】 2020.11.12大胸白虎妹,极品美乳,温柔如水性格好,连干两炮激情四射-mp4,
临时文件夹: D:/Tool/win-pyvideotrans-v4.03-0622/tmp/20412/aae81bfc06
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:WhisperX(本地API), model_name: large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 单字幕
代理地址: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) 需要您自行在本地部署并启动其 API 服务,当前服务未运行或地址连接失败。

解决方法:

  1. 部署并启动 WhisperX 的 API 服务(通常基于 OpenAI 兼容接口),确保其在本地运行并可访问。
  2. 在 pyVideoTrans 的 菜单 -> 语音识别设置 -> WhisperX 中,填写正确的 API 地址(例如 http://127.0.0.1:端口号),确保与启动的服务端口一致。
  3. 确认服务启动后,重新执行任务即可。

请查阅相关文档:

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