#8172 [Clone-Voice] Service must be deployed and running before useself.api_url='http://127.0.0.1:9988'

190.103**2 Posted at: 1 hour ago

[Clone-Voice] Service must be deployed and running before use
self.api_url='http://127.0.0.1:9988'
:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'role': '', 'filename': 'C:/pyTrans/tmp/3032/1792055491.4764276-clonevoice.wav', 'tts_type': 31}
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

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

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py",
......
ed by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\tts\_clone.py", line 38, in _run
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9988): Max retries exceeded with url: /apitts (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

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 "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\_clone.py", line 45, in _run
videotrans.configure.excepts.StopTask: [Clone-Voice] Service must be deployed and running before use
self.api_url='http://127.0.0.1:9988'


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:C:/pyTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

The Clone-Voice API service is not deployed or not currently running on 127.0.0.1:9988, so the software cannot connect to it (ConnectionRefusedError: [WinError 10061]). This is a local/self-hosted TTS channel, so the service must be started before use.

Solution:

  1. Deploy the Clone-Voice service first, and make sure it is listening on 127.0.0.1:9988.

    • If you have the service source code, start it and confirm the port matches the configured API URL.
    • If you do not have it, this channel is no longer maintained, so it is recommended to switch to another TTS channel.
  2. In pyVideoTrans, verify the Clone-Voice API address is set correctly (for this channel it should be http://127.0.0.1:9988), and avoid using 0.0.0.0 – use 127.0.0.1.
  3. After starting the service, retry the task. If the service cannot be started successfully, use a maintained TTS channel such as Edge-TTS(免费) or Qwen3-TTS(内置).

Please refer to the related 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