#9041 Error during TTS dubbing stage [ChatterBox(Built-in)] ChatterBox-TTS dubbing errorTraceback (most recent call last):

2401**8e29 Posted at: 3 hours ago

Error during TTS dubbing stage [ChatterBox(Built-in)] ChatterBox-TTS dubbing error
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 136, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 105, in _tts
File "videotrans\tts\__init__.py", line 135, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_chatterbox.py", line 97, in _exec
videotrans.configure.excepts.DubbingSrtError: ChatterBox-TTS dubbing error

trk=Translation V/A 单视频模式
Select Media File: D:/[12]- Helmet Simulations/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4,
Output Directory: D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4,
self.cfg.cache_folder='D:/v4.18/tmp/5288/07fcc49321'
Selected Clear Output, Selected Enable CUDA
Selected Denoise,Denoise Model:dpdfnet2.onnx
Selected Restore Punct(zh/en)
STT Service:faster-whisper(Built-in), distil-large-v3, Spoken: English
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:float16
Beam Size:5
Best Of:5
Condition on Previous Text:True
Repetition Penalty:1.0
Compression Ratio Threshold:2.4
TranslateSrt:Microsoft Translate (Free),Spoken:English,Target:Hindi
Traditional Translation Batch Size (Lines): 5
TTS Service:ChatterBox(Built-in), Voices:clone, Target:Hindi
Volume:+0%, Speed:+0%, Selected TTS Speedup, Not-Selected Slow Video
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
Selected: SecondarySTT, Secondary Recognition Model: large-v3
Secondary ASR Max Speech Duration (s): 1.0s
Secondary ASR Min Speech Duration (ms): 300ms
Selected Identify Speakers: No Limit
Speaker Diarization Model: pyannote
No Subtitles
Selected Separate Vocal/BGM, Model:spleeter,Selected Re-embed BGM, Background Audio Volume Multiplier:0.8, Loop BGMD:/v4.18/tmp/5288/07fcc49321/vocal.wavD:/v4.18/tmp/5288/07fcc49321/instrument.wav
video duration:134800ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 720, 'height': 1280, 'time': 134800, 'streams_len': 3, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='07fcc49321', name='D:/[12]- Helmet Simulations/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', dirname='D:/[12]- Helmet Simulations', noextname='You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming', basename='You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', ext='mp4', target_dir='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4', cache_folder='D:/v4.18/tmp/5288/07fcc49321', is_cuda=True, source_language='English', source_language_code='en', source_sub='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/en.srt', source_wav='D:/v4.18/tmp/5288/07fcc49321/en.wav', source_wav_output='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/en.m4a', target_language='Hindi', target_language_code='hi', target_sub='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/hi.srt', target_wav='D:/v4.18/tmp/5288/07fcc49321/target.wav', target_wav_output='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/hi.m4a', translate_type=1, tts_type=9, 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='en', recogn_type=0, model_name='distil-large-v3', shibie_audio=None, remove_noise=True, enable_diariz=True, nums_diariz=0, rephrase=False, fix_punc=1, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='D:/[12]- Helmet Simulations/_video_out/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming-mp4/You must choose a planet to survive on for one year. #liminalspaces #analoghorror #retrogaming.mp4', novoice_mp4='D:/v4.18/tmp/5288/07fcc49321/novoice.mp4', is_separate=True, embed_bgm=True, instrument='D:/v4.18/tmp/5288/07fcc49321/instrument.wav', vocal='D:/v4.18/tmp/5288/07fcc49321/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=134800


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

1 Replies

#1 DeepSeek reply at 3 hours ago

The traceback only shows the generic DubbingSrtError raised by _chatterbox.py and does not contain the underlying exception, so it cannot be pinpointed directly. For the ChatterBox built-in channel, there are two most common root causes:

  1. Auxiliary files required on first use were not downloaded: ChatterBox needs, in addition to the main model, 2 files hosted on github.com; put them into 软件目录/models/pkuser_home; if that download fails, the dubbing stage throws this error.
  2. The video path contains special characters: Your file name has # plus [] and spaces (D:/[12]- Helmet Simulations/You must choose... #liminalspaces #analoghorror #retrogaming.mp4); the underlying FFmpeg/TTS pipeline is very prone to failure on paths containing #, [], and spaces.

Troubleshooting steps:

  1. Open D:/v4.18/logs/ and find the log for today (YYYYMMDD.log), search for the lines after ChatterBox to see the actual underlying exception (e.g., FileNotFoundError, download, CUDA out of memory).
  2. Manually complete the ChatterBox auxiliary files: download https://github.com/explosion/spacy-pkuseg/releases/download/v0.0.26/spacy_ontonotes.zip, extract features.msgpack and weights.npz, and put them into D:/v4.18/models/pkuser_home/ (create the folder if it does not exist).
  3. Confirm that the model directory D:/v4.18/models/models--ResembleAI--chatterbox is complete (model download URL https://huggingface.co/ResembleAI/chatterbox/tree/main); if incomplete, download manually; after downloading, rename files with the same name back to their original names before placing them.
  4. Rename the video to a short, pure-English name containing no #, [], or spaces (e.g., video1.mp4), move it to a shallow directory such as D:/videos/, and retry.
  5. It is recommended to check Clear Output before retrying, to avoid reusing failed cached files.
  6. To verify the rest of the pipeline is fine, temporarily switch the TTS channel to Edge-TTS (Free) for one run; if it succeeds, the problem is confined to the ChatterBox channel.

If it still fails after the above, paste the 20–30 lines in logs/ containing the actual exception following ChatterBox-TTS dubbing error, so the cause can be determined.

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