点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1989 videotrans.configure._except.StopRetry: [Errno 111] 连接被拒绝

104.28* Posted at: 1 day ago 👁17

[Errno 111] 连接被拒绝:
Traceback (most recent call last):
File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions

yield

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 250, in handle_request

resp = self._pool.handle_request(req)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request

raise exc from None

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request

response = connection.handle_request(

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 99, in handle_request

raise exc

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/htt
......
File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_api.py", line 195, in get

return request(

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_api.py", line 109, in request

return client.request(

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_client.py", line 825, in request

return self.send(request, auth=auth, follow_redirects=follow_redirects)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1014, in _send_single_request

response = transport.handle_request(request)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in handle_request

with map_httpcore_exceptions():

File "/home/artworker/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions

raise mapped_exc(message) from exc

httpx.ConnectError: [Errno 111] 连接被拒绝

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/artworker/tts/pyvideotrans-3.86/videotrans/util/ListenVoice.py", line 18, in run

tts.run(

File "/home/artworker/tts/pyvideotrans-3.86/videotrans/tts/__init__.py", line 312, in run

F5TTS(**kwargs).run()

File "/home/artworker/tts/pyvideotrans-3.86/videotrans/tts/_base.py", line 177, in run

raise self.error if isinstance(self.error,Exception)  else RuntimeError(str(self.error))

File "/home/artworker/tts/pyvideotrans-3.86/videotrans/tts/_f5tts.py", line 316, in _item_task

_run()

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 338, in wrapped_f

return copy(f, *args, **kw)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 477, in call

do = self.iter(retry_state=retry_state)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 378, in iter

result = action(retry_state)

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 400, in

self._add_action_func(lambda rs: rs.outcome.result())

File "/home/artworker/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/concurrent/futures/_base.py", line 451, in result

return self.__get_result()

File "/home/artworker/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result

raise self._exception

File "/home/artworker/tts/pyvideotrans-3.86/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "/home/artworker/tts/pyvideotrans-3.86/videotrans/tts/_f5tts.py", line 303, in _run

raise StopRetry( f'{e}')

videotrans.configure._except.StopRetry: [Errno 111] 连接被拒绝


=
system:Linux-6.14.0-37-generic-x86_64-with-glibc2.39
version:v3.86
frozen:False
language:zh
root_dir:/home/artworker/tts/pyvideotrans-3.86
Python: 3.10.19 (main, Oct 14 2025, 21:25:25) [Clang 20.1.4 ]

1 Replies

错误日志显示,在使用 F5-TTS 进行语音合成时,软件无法连接到其本地 API 服务地址,导致“连接被拒绝”。F5-TTS 是本地部署的语音克隆模型,需要您先启动其服务。

请按以下步骤检查和解决:

  1. 确认 F5-TTS 服务已启动:您需要在本地或服务器上部署并运行 F5-TTS 项目。确保其 WebUI 或 API 服务正在运行。
  2. 检查服务地址:在 pyVideoTrans 主界面,选择 F5-TTS 作为配音角色后,点击角色名称旁边的 “设置” 按钮。
  3. 配置正确的 API 地址:在弹出的设置窗口中,将“API地址”修改为您的 F5-TTS 服务实际运行的地址和端口。例如,如果 F5-TTS 在本地运行且默认端口为 7860,地址应为 http://127.0.0.1:7860
  4. 测试连接:保存设置后,可以尝试选择一个配音角色并点击“试听”来测试连接是否成功。

如果 F5-TTS 服务尚未部署,您需要先完成其部署。您也可以暂时切换到其他可用的配音渠道,如 Edge-TTS。

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

Trending Questions