#7099 indextts 该渠道需另行部署并启动后可用self.api_url='http://127.0.0.1:7860'

113.103**7 Posted at: 2 hours ago

indextts 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:7860'
[WinError 10061] 由于目标计算机积极拒绝,无法连接。
:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'zh_female_tw.wav', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.11/tmp/14280/1788798468.2432957-12.wav', 'tts_type': 12}
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: [WinEr
......
_gradio.py", line 37, in get_thread_client
File "gradio_client\client.py", line 162, in init
File "gradio_client\client.py", line 935, 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] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 233, in run
File "videotrans\tts\_base.py", line 103, in run
File "videotrans\tts\_base.py", line 206, in _exec
File "videotrans\tts\_base.py", line 166, in _local_mul_thread
File "videotrans\tts\_base.py", line 218, in _item_task
File "videotrans\tts\_index.py", line 35, in _run
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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gradio.py", line 76, in _send
videotrans.configure.excepts.StopTask: indextts 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:7860'
[WinError 10061] 由于目标计算机积极拒绝,无法连接。


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 2 hours ago

报错[WinError 10061] 由于目标计算机积极拒绝,无法连接的根本原因是:pyVideoTrans 无法连接到 http://127.0.0.1:7860 上的 Index-TTS 服务。该服务并未启动,或端口/地址填写不正确。

Index-TTS 属于「本地自行部署」渠道,pyVideoTrans 本身不附带该服务,使用前必须先在你自己电脑上单独部署并启动它。

解决方法

  1. 确保 Index-TTS 服务已启动
    自行完成 Index-TTS 的部署(例如根据其开源项目教程在本地运行),启动后服务通常监听在 http://127.0.0.1:7860。启动成功后再回到 pyVideoTrans 使用。
  2. 检查 API 地址配置
    在 pyVideoTrans 中,打开 菜单 -> TTS设置 -> 自定义TTS API(或对应 Index-TTS 渠道的设置界面),确认填写的 API 地址是:

    http://127.0.0.1:7860/

    注意:不要写成 0.0.0.0,必须使用 127.0.0.1localhost

  3. 确认端口未被占用或冲突
    在命令行执行 netstat -ano | findstr :7860 检查端口是否被其他程序占用。若被占用,需修改 Index-TTS 启动端口,并同步修改 pyVideoTrans 中的地址。
  4. 排除本地服务被代理干扰
    软件已内置本地服务自动绕过代理,但仍建议检查是否有系统级代理强制拦截本地请求。

请查阅相关文档:

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