#7552 [Parakeet] 该渠道需另行部署并启动后可用self.api_url='http://127.0.0.1:5092/v1'

18.167**3 Posted at: 1 hour ago

[Parakeet] 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:5092/v1'
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\_parakeet.py", line 24, 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\util\TestSTT.py", line 21, in run
File "videotrans\recognition\__init__.py", line 121, in run
File "videotrans\recognition\_base.py", line 99, in run
File "videotrans\recognition\_parakeet.py", line 34, in _exec
videotrans.configure.excepts.StopTask: [Parakeet] 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:5092/v1'
Connection error.


=
system:Windows-10-10.0.19045-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:C:/Users/Administrator/Desktop/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Parakeet 本地 API 渠道未部署或未启动导致的连接失败。

软件内置了 Parakeet 的调用客户端,但不内置该模型的推理服务,需你自行单独部署并启动后方可使用,而当前 127.0.0.1:5092 端口无任何服务在监听,故被系统拒绝连接(WinError 10061)。

解决方案

  1. 确认是否已部署 Parakeet 服务:该渠道非开箱即用,需另行部署 Parakeet-tdt 的推理服务,并确保其监听在 5092 端口、暴露 OpenAI 兼容的 /v1/audio/transcriptions 接口。

    部署方法参见正式文档:https://pyvideotrans.com/parakeet
  2. 启动服务后自检:服务启动后,在浏览器或命令行访问 http://127.0.0.1:5092/v1/models 或直接发测试请求,确认接口有正常返回,而非“连接被拒绝”。

  3. 检查端口与地址是否一致:代码中写死为 http://127.0.0.1:5092/v1,请确保你部署的服务确实在 5092 端口(若部署在其他端口,需改为该端口,或部署时指定 5092)。

    同时确认没有其他程序占用该端口。

  4. 确认服务进程未被关闭:部署脚本运行中若窗口被关闭或进程崩溃,端口即释放,软件再次调用就会报此错。

    请保持服务常驻运行。

  5. 若不想使用该渠道:请勿选择 Parakeet-tdt(本地API),改用内置渠道(如 faster-whisper(内置)openai-whisper(内置))即可,无需额外部署。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource