#7567 [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 语音识别服务并启动后才能使用,软件本身不内置该服务。

报错 [WinError 10061] 由于目标计算机积极拒绝,无法连接 说明软件尝试连接 http://127.0.0.1:5092/v1,但该端口上没有任何服务在运行。

解决方案

  1. 确认是否已部署 Parakeet 服务:该渠道需自行部署,未部署则无法使用。

    如未部署,请先完成部署(参见文档)。

  2. 确认服务已启动:部署完成后,需启动服务,并确保其监听在 127.0.0.1:5092 端口。

  3. 确认端口一致:检查你部署的服务实际监听端口是否与软件中填写的一致(默认 5092)。

    若不一致,请在 菜单 -> 翻译设置(或识别设置) -> Parakeet 中修改地址。

  4. 确认地址格式:API 地址不可填写 0.0.0.0,必须使用 127.0.0.1

  5. 验证服务可用:启动服务后,可先用浏览器或工具访问 http://127.0.0.1:5092/v1 确认能正常响应,再回到软件中重试。

  6. 临时替代方案:如暂时不想部署 Parakeet,可改用默认推荐的 faster-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