#7822 API URL is error: :{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'zh_male_bj.wav', 'filename': 'D:/win-pyvideotrans-v4.

222.252**9 Posted at: 2 hours ago

API URL is error: :
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': 'zh_male_bj.wav', 'filename': 'D:/win-pyvideotrans-v4.15/tmp/28356/1791171818.0280275-12.wav', 'tts_type': 12}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 122, in run
File "", line 20, in init
File "videotrans\tts\_index.py", line 18, in post_init
File "videotrans\tts\_gradio.py", line 29, in post_init
videotrans.configure.excepts.StopTask: API URL is error:


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:en_US
root_dir:D:/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

This is because the Index-TTS local API service is not running or the API address is not filled in / is incorrect, causing the TTS channel to fail when connecting to the API URL (the error message shows the URL is empty).

Troubleshooting steps:

  1. Confirm that your local Index-TTS service has been started (its WebUI normally runs at http://127.0.0.1:7860). The error API URL is error: with an empty address means pyVideoTrans cannot find a valid address.
  2. In the software, go to Menu → TTS Settings → Index-TTS, fill in the correct address, e.g. http://127.0.0.1:7860, then save.
  3. Make sure the address is not 0.0.0.0 — if the local service shows 0.0.0.0, change it to 127.0.0.1.
  4. Make sure the API version (e.g. whether api_v2? is checked) matches the way your Index-TTS service was started, otherwise you will get errors.
  5. After saving, retry.

Note: The tts_type: 12 in your log is the Index-TTS channel, confirming this is an Index-TTS local API connection issue.

Please refer to the relevant documentation:

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