#5411 self.api_url='http://127.0.0.1:7860'

58.19* Posted at: 13 hours ago

[WinError 10061] 由于目标计算机积极拒绝,无法连接。
self.api_url='http://127.0.0.1:7860':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 184, in run
File "videotrans\tts\_base.py", line 134, in run
videotrans.configure.excepts.DubbingSrtError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
self.api_url='http://127.0.0.1:7860'


=
system:Windows-10-10.0.26200-SP0
version:v4.02
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v4.02-0612

1 Replies

[WinError 10061] 表示本地 7860 端口没有服务在运行。您选择的配音渠道(如 F5-TTS、Spark-TTS、IndexTTS 等)需要自行部署并启动对应的本地服务,默认监听地址为 http://127.0.0.1:7860

解决方案:

  1. 确认所选配音渠道:检查主界面“配音渠道”是否属于需要本地部署的类型(如 F5-TTS / Spark / IndexTTS / DiaTTS / VoxCPM / Confucius4 等)。
  2. 启动本地服务:根据您选择的渠道,部署并运行对应的服务(例如 F5-TTS 的 Gradio WebUI 或 API),确保它成功监听在 127.0.0.1:7860
  3. 验证地址:在 菜单 -> TTS 设置 -> F5TTS 面板中,确认 API 地址已正确填写为 http://127.0.0.1:7860(或服务实际监听的地址)。
  4. 等待服务就绪:启动本地服务后,请稍等几秒再开始翻译任务,避免服务尚未完全就绪。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist