#1505 requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tt

171.221* Posted at: 2 hours ago 👁5

连接被拒绝,请确保本地服务已启动并正在运行:
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&ref_audio_path=anzhong.wav&prompt_text=%E6%B8%B4%E6%9C%9B%E7%9D%80%EF%BC%8C%E6%B8%B4%E6%9C%9B%E7%9D%80%EF%BC%8C%E4%B8%9C%E9%A3%8E%E6%9D%A5%E4%BA%86%EF%BC%8C%E6%98%A5%E5%A4%A9%E7%9A%84%E8%84%9A%E6%AD%A5%E8%BF%91%E4%BA%86%E3%80%82&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 264, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_gptsovits.py", line 115, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gptsovits.py", line 92, in _run
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9880): Max retries exceeded with url: /tts?text=hello%2C+my+dear+friend.+i+hope+your+every+day+is+beautiful+and+enjoyable%21&text_lang=en&ref_audio_path=anzhong.wav&prompt_text=%E6%B8%B4%E6%9C%9B%E7%9D%80%EF%BC%8C%E6%B8%B4%E6%9C%9B%E7%9D%80%EF%BC%8C%E4%B8%9C%E9%A3%8E%E6%9D%A5%E4%BA%86%EF%BC%8C%E6%98%A5%E5%A4%A9%E7%9A%84%E8%84%9A%E6%AD%A5%E8%BF%91%E4%BA%86%E3%80%82&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.22631-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/videotrans/win-videotrans-v3.82_20251019_125144

1 Replies

该错误表明您正在使用 GPT-SoVITS 进行语音合成,但软件无法连接到本地运行的 GPT-SoVITS 服务(地址为 127.0.0.1:9880)。

请按以下步骤解决:

  1. 确认 GPT-SoVITS 服务已启动:您需要先在本地启动 GPT-SoVITS 的 Web 服务。请确保 GPT-SoVITS 项目已正确部署,并且服务正在 127.0.0.19880 端口上运行。
  2. 检查服务地址:在 pyVideoTrans 的顶部菜单中,进入 TTS设置 -> GPT-SO-VITS,确认其中的 API 地址和端口与您本地启动的 GPT-SoVITS 服务地址完全一致(默认应为 http://127.0.0.1:9880)。
  3. 测试连接:您可以在浏览器中访问 http://127.0.0.1:9880(如果 GPT-SoVITS 提供了 Web 界面)或使用其他 API 测试工具来验证服务是否可访问。

如果服务确认已启动但连接仍被拒绝,可能是防火墙阻止了连接,或者 GPT-SoVITS 服务本身出现了问题。请检查 GPT-SoVITS 的运行日志以获取更多信息。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions