点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1965 TaskCfg(cache_folder='C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86/tmp16344/2ddb55a378', target_dir='C:/Us

31.31* Posted at: 6 hours ago 👁6

ASR Error:[faster-whisper (Local)] File not found: C:\Users\jalal\Downloads\Video\3\_video_out\3\ar.srt:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 378, in recogn
File "pathlib.py", line 1132, in read_text
File "pathlib.py", line 1117, in open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\jalal\Downloads\Video\3\_video_out\3\ar.srt'

TaskCfg(cache_folder='C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86/tmp16344/2ddb55a378', target_dir='C:/Users/jalal/Downloads/Video/3/_video_out/3', remove_noise=False, is_separate=False, detect_language='ar', subtitle_language=None, source_language='Arabic', target_language='Arabic', source_language_code='ar', target_language_code='ar', source_sub='C:/Users/jalal/Downloads/Video/3/_video_out/3/ar.srt', target_sub='C:/Users/jalal/Downloads/Video/3/_video_out/3/ar.srt', source_wav='C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86/tmp16344/2ddb55a378/ar.wav', source_wav_output='C:/Users/jalal/Downloads/Video/3/_video_out/3/ar.m4a', target_wav='C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86/tmp16344/2ddb55a378/target.wav', target_wav_output='C:/Users/jalal/Downloads/Video/3/_video_out/3/ar.m4a', subtitles='', novoice_mp4='C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86/tmp16344/2ddb55a378/novoice.mp4', noextname='3', shibie_audio=None, targetdir_mp4='C:/Users/jalal/Downloads/Video/3/_video_out/3/3.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=False, clear_cache=True, translate_type=1, tts_type=0, recogn_type=0, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='C:/Users/jalal/Downloads/Video/3/3.mp4', basename='3.mp4', ext='mp4', dirname='C:/Users/jalal/Downloads/Video/3', shound_del_name=None, uuid='2ddb55a378', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.19045-SP0
version:v3.86
frozen:True
language:en
root_dir:C:/Users/jalal/Downloads/Compressed/win-pyvideotrans-v3.86

1 Replies

The error indicates that the software is trying to read a subtitle file (ar.srt) that does not exist. This typically happens when the speech recognition (ASR) step fails to generate the initial subtitle file, but the process continues.

Based on the configuration (app_mode='tiqu'), you are likely using the "Transcribe and Translate Subtitles" tool from the toolbox. The source and target languages are both set to Arabic (ar).

Most likely causes and solutions:

  1. ASR Model Failure: The faster-whisper model (tiny) may have failed to process the audio. The tiny model is fast but has low accuracy and may struggle with certain audio.

    • Solution: Try a larger, more accurate model like medium or large-v2 in the ASR settings.
  2. Audio File Issues: The extracted audio (ar.wav) might be corrupt, silent, or in an unsupported format.

    • Solution: Check if the original video has an audio track. You can use the "Audio/Video Merge/Separate" tool in the toolbox to extract the audio and verify it plays.
  3. Path/Encoding Issues: The video file path (C:/Users/jalal/Downloads/Video/3/3.mp4) contains a number, which is usually fine, but ensure there are no special characters or very long path names.

    • Solution: Temporarily move the video file to a simple location like D:\test.mp4 and try again.
  4. Cache Conflict: A previous failed attempt might have corrupted the cache.

    • Solution: In the main interface (or the toolbox tool's interface), make sure the "Clean generated" checkbox is selected before starting the task. This forces a fresh start.

Immediate troubleshooting steps:

  1. Go to the Toolbox and use the "Batch Speech to Subtitles" tool on your video file.
  2. Select a more robust ASR model (e.g., medium).
  3. Ensure the "Detect Language" is set to Arabic or auto.
  4. Check the "Clean generated" option.
  5. Run the task. If it succeeds, you will get an SRT file. If it fails, it will provide a more specific error about the ASR process itself.

If the problem persists after these steps, please provide the complete log file from C:\Users\jalal\Downloads\Compressed\win-pyvideotrans-v3.86\logs\.

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions