#3268 TaskCfg(cache_folder='E:/DUB/tmp/30620/74dc4c8ae7', target_dir='H:/before/_video_out/2-mp4', remove_noise=False, is_sepa

176.29* Posted at: 22 hours ago 👁14

Dubbing Error [Edge-TTS(Free)] invalid literal for int() with base 10: ',000'
Traceback (most recent call last):
File "videotrans\task\job.py", line 214, in run
File "videotrans\task\trans_create.py", line 677, in dubbing
File "videotrans\task\trans_create.py", line 953, in _tts
File "videotrans\tts\__init__.py", line 321, in run
File "", line 15, in init
File "videotrans\tts\_edgetts.py", line 29, in post_init
File "videotrans\tts\_base.py", line 74, in post_init
File "videotrans\tts\_base.py", line 87, in _cleantts
File "videotrans\util\en_tn.py", line 265, in call
File "videotrans\util\en_tn.py", line 235, in normalize_numbers
File "re.py", line 209, in sub
File "videotrans\util\en_tn.py", line 159, in _expand_dollars
ValueError: invalid literal for int() with base 10: ',000'
TaskCfg(cache_folder='E:/DUB/tmp/30620/74dc4c8ae7', target_dir='H:/before/_video_out/2-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='English', target_language='English', source_language_code='en', target_language_code='en', source_sub='H:/before/_video_out/2-mp4/en.srt', target_sub='H:/before/_video_out/2-mp4/en.srt', source_wav='E:/DUB/tmp/30620/74dc4c8ae7/en.wav', source_wav_output='H:/before/_video_out/2-mp4/en.m4a', target_wav='E:/DUB/tmp/30620/74dc4c8ae7/target-dubbing.wav', target_wav_output='H:/before/_video_out/2-mp4/en-dubbing.m4a', subtitles='', novoice_mp4='E:/DUB/tmp/30620/74dc4c8ae7/novoice.mp4', noextname='2', shibie_audio=None, targetdir_mp4='H:/before/_video_out/2-mp4/2.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+1%', voice_role='Ryan(Male/GB)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=True, is_cuda=True, name='H:/before/2.mp4', basename='2.mp4', ext='mp4', dirname='H:/before', shound_del_name=None, uuid='74dc4c8ae7', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:en
root_dir:E:/DUB

1 Replies

This error is caused by a number formatting issue during the Edge-TTS text normalization process. Specifically, the software's text cleaner failed to correctly parse a number containing a comma (e.g., "1,000").

To resolve this, follow these steps:

  1. Disable Text Cleaning (Recommended for English):

    • In the software's main interface, click on "Advanced Options".
    • Find the "Text Cleaning" setting.
    • Uncheck the box to disable this feature.
    • Retry the dubbing task.
  2. Alternative: Edit the Source Subtitle File:

    • Locate the source subtitle file mentioned in the error log: H:/before/_video_out/2-mp4/en.srt.
    • Open it with a text editor (like Notepad++).
    • Search for numbers containing commas (e.g., 1,000, 2,500).
    • Remove the commas from these numbers (e.g., change 1,000 to 1000).
    • Save the file and retry the dubbing task.

Please refer to the relevant documentation:

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.

Related resource