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

107.155**7 Posted at: 1 hour ago

indextts 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:9000'
[WinError 10061] 由于目标计算机积极拒绝,无法连接。
:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': '쏟아져 나오는 중국의 로봇! [코너별 다시보기 - 0921].ae-0-5.4.wav', 'filename': 'C:\Users\windos\AppData\Local\Temp/pyvideotrans/12-1791275920.606584.wav', 'tts_type': 12, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
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\_gradio.py", line 52, in _send
File "videotrans\tts\_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 232, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_base.py", line 200, in _exec
File "videotrans\tts\_base.py", line 160, in _local_mul_thread
File "videotrans\tts\_base.py", line 212, in _item_task
File "videotrans\tts\_index.py", line 40, in _run
File "videotrans\tts\_gradio.py", line 76, in _send
videotrans.configure.excepts.StopTask: indextts 该渠道需另行部署并启动后可用
self.api_url='http://127.0.0.1:9000'
[WinError 10061] 由于目标计算机积极拒绝,无法连接。


=
system:Windows-10-10.0.22631-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:F:/sppy

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是:Index-TTS 是本地API渠道,不是软件内置模型。软件本身不会自动启动 Index-TTS 服务,它只是尝试连接你本地已部署的 Index-TTS 接口。当前报错 [WinError 10061] 由于目标计算机积极拒绝,无法连接,说明 http://127.0.0.1:9000 这个地址没有服务在运行,或者端口不对。

请按以下步骤排查:

  1. 确认 Index-TTS 已单独部署并启动

    • Index-TTS 必须先运行其 WebUI 或 API 服务,pyVideoTrans 才能调用。
    • 如果只安装了 pyVideoTrans,但没有启动 Index-TTS,就会报这个错。
  2. 确认地址和端口正确

    • 你填的是 http://127.0.0.1:9000。
    • 请检查 Index-TTS 实际启动时监听的是哪个端口。很多 Index-TTS 默认地址是 http://127.0.0.1:7860,不一定是 9000。
    • 浏览器直接访问该地址,例如打开 http://127.0.0.1:9000,如果打不开,说明服务没启动或端口错误。
  3. 确认服务监听地址不是 0.0.0.0

    • 如果你在软件里填了 0.0.0.0,需要改为 127.0.0.1。
    • 当前你填的是 127.0.0.1,格式本身没问题。
  4. 确认软件顶部菜单里的 TTS 设置已保存

    • 进入 设置 -> TTS设置 -> Index-TTS,重新填写真实可访问的地址,保存后再测试。
  5. 确认没有被代理影响

    • 本地服务不应走代理。
    • 如果你在 pyVideoTrans 主界面填写了网络代理,请确保本地 127.0.0.1 地址不被代理拦截,必要时清空代理后再试。
  6. 确认 Index-TTS 的 API 文档可用

    • 如果 Index-TTS 的 WebUI 页面底部没有 Use via API,说明 API 功能未开启。
    • 需要启动其 API 服务,或根据其文档开启 Gradio API。
  7. 如果 Index-TTS 服务已启动但仍报错

    • 请提供 Index-TTS 的启动日志和实际监听端口。
    • 同时提供 pyVideoTrans 安装目录下 logs/ 中最新的日志底部约30行。

请查阅相关文档:

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