#8762 Error during TTS dubbing stage [clone-voice(LocalAPI)] [Clone-Voice] Service must be deployed and running before useself

108.198**8 Posted at: 10 minutes ago

Error during TTS dubbing stage [clone-voice(LocalAPI)] [Clone-Voice] Service must be deployed and running before use
self.api_url='http://127.0.0.1:9988'

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", line 976, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.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 "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3
......
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'

trk=Translation V/A 单视频模式
Select Media File: G:/Movies/Audials Other Videos/BB Convert to English/Babylon Berlin - Folge 1 · Staffel 5 _ Babylon Be_ier anschauen_2.mp4,
Output Directory: G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 _ Babylon Be_ier anschauen_2-mp4,
self.cfg.cache_folder='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd'
Selected Clear Output, Not-Selected Enable CUDA
STT Service:faster-whisper(Built-in), large-v3, Spoken: German
Max Speech Duration (s): 5s
Min Speech Duration (ms): 3000ms
Min Silence Duration for Split (ms): 600ms
VAD Speech Threshold: 0.45
VAD Engine: silero
Compute Type:default
Beam Size:5
Best Of:5
Condition on Previous Text:False
Repetition Penalty:1.0
Compression Ratio Threshold:2.4
TranslateSrt:Google Translate (Free),Spoken:German,Target:English
Traditional Translation Batch Size (Lines): 5
TTS Service:clone-voice(LocalAPI), Voices:clone, Target:English
Volume:+0%, Speed:+0%, Selected TTS Speedup, Not-Selected Slow Video
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
Hard Subtitles
Max Line Length (CJK Characters):15, Max Line Length (Non-CJK):40
Selected Output MP4 Only
video duration:2304866ms
video information:{'video_fps': 50.0, 'r_frame_rate': 50.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 2304866, 'streams_len': 3, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='9d6d5dd3dd', name='G:/Movies/Audials Other Videos/BB Convert to English/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2.mp4', dirname='G:/Movies/Audials Other Videos/BB Convert to English', noextname='Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2', basename='Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2.mp4', ext='mp4', target_dir='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4', cache_folder='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd', is_cuda=False, source_language='German', source_language_code='de', source_sub='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4/de.srt', source_wav='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd/de.wav', source_wav_output='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4/de.m4a', target_language='English', target_language_code='en', target_sub='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4/en.srt', target_wav='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd/target.wav', target_wav_output='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4/en.m4a', translate_type=0, tts_type=40, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='de', recogn_type=0, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='G:/Movies/Audials Other Videos/BB Convert to English/_video_out/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2-mp4/Babylon Berlin - Folge 1 · Staffel 5 Babylon Be_ier anschauen_2.mp4', novoice_mp4='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd/instrument.wav', vocal='D:/Downloads/win-pyvideotrans-v4.18/tmp/13056/9d6d5dd3dd/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=2304866


=
system:Windows-10-10.0.19045-SP0
version:v4.18
frozen:True
language:en_US
root_dir:D:/Downloads/win-pyvideotrans-v4.18

1 Replies

#1 DeepSeek reply at 10 minutes ago

This is because the Clone-Voice local service is not running: WinError 10061 means nothing is listening on 127.0.0.1:9988, and this TTS channel (Clone-Voice LocalAPI) requires you to deploy and start that service yourself before it can be called.

Two ways to fix it:

Option A: deploy the Clone-Voice service (if you insist on this channel)

  1. Deploy the Clone-Voice project locally and start its API service, and make sure the listening port is 9988.
  2. After the service starts, open a browser and visit http://127.0.0.1:9988 to confirm it responds.
  3. Back in pyVideoTrans, make sure Menu → Translation Settings → Clone-Voice is filled with http://127.0.0.1:9988, then re-run and check Clear Output.
    NOTE: Clone-Voice is no longer maintained and the project is outdated; it is not recommended to continue using it.

Option B: switch to a clone channel that is recommended and actively maintained (recommended)
Change TTS Service to any one of the following, with Voices set to clone:

  • Qwen3-TTS(Built-in)
  • OmniVoice(Built-in)
  • F5-TTS(Built-in)
  • Confucius(Built-in)
  • ChatterBox(Built-in)
  • ZipVoice ZH/EN(Built-in)
  • Audio.cpp(Local)
  • GPT-SoVITS / Index-TTS / CosyVoice (these require your own local deployment, same as Clone-Voice, but are actively maintained)

Other notes from your log:

  • When using a clone voice, Min Speech Duration (ms) must be ≥ 3000 (you currently have 3000, so it is fine).
  • The video file path contains · and an overly long filename, which easily triggers ffmpeg related errors in the later stages. Rename it to a short alphanumeric name and put it in a shallow directory before re-running.
  • Switching the TTS channel does not require re-running speech recognition and translation; check Clear Output before re-running.

The specific cause of subsequent errors cannot be determined yet. If it still fails after switching channels, provide the last 30 lines of the latest log in the logs/ folder under the software installation directory.

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