#4545 [WinError 10061] 由于目标计算机积极拒绝,无法连接。Traceback (most recent call last): File "httpx\_transports\default.py", line 101, in

203.198* Posted at: 20 hours ago 👁18

[WinError 10061] 由于目标计算机积极拒绝,无法连接。
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 "videotrans\tts\_omnivoice.py", line 94, in _item_task
File "gradio_client\client.py", line 163, in init
File "gradio_client\client.py", line 936, in _get_config
File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, in 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] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 735, in dubbing
File "videotrans\task\trans_create.py", line 1048, in _tts
File "videotrans\tts\__init__.py", line 451, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_omnivoice.py", line 61, in _exec
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_omnivoice.py", line 96, in _item_task
videotrans.configure._except.StopRetry: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

1 Replies

这是由于OmniVoice-TTS 配音渠道的API服务未运行或地址配置错误导致的连接被拒绝。

解决方案:

  1. 启动OmniVoice 服务:确保已独立部署并启动 OmniVoice-TTS 的 API 服务(默认地址通常为 http://127.0.0.1:7860),保持终端窗口不关闭。
  2. 检查API地址配置:在软件菜单栏 工具/选项 -> TTS设置 -> OmniVoice-TTS 中,确认填写的 API URL 地址和端口号与实际运行的服务一致(例如 http://127.0.0.1:7860)。
  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.

Related resource