#4046 TaskCfg(cache_folder='D:/tts/tmp/7996/20059c023f', target_dir='E:/音频库/4.13/_video_out/1 (1)-mp4', remove_noise=False, is

1.161* Posted at: 2 hours ago 👁9

语音识别阶段出错:[faster-whisper(本地)] 运行时错误:代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容:
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\trans_create.py", line 360, in recogn
File "videotrans\recognition\__init__.py", line 243, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 182, in _exec
RuntimeError: 代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容

TaskCfg(cache_folder='D:/tts/tmp/7996/20059c023f', target_dir='E:/音频库/4.13/_video_out/1 (1)-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='英语', source_language_code='en', target_language_code='en', source_sub='E:/音频库/4.13/_video_out/1 (1)-mp4/en.srt', target_sub='E:/音频库/4.13/_video_out/1 (1)-mp4/en.srt', source_wav='D:/tts/tmp/7996/20059c023f/en.wav', source_wav_output='E:/音频库/4.13/_video_out/1 (1)-mp4/en.m4a', target_wav='D:/tts/tmp/7996/20059c023f/target.wav', target_wav_output='E:/音频库/4.13/_video_out/1 (1)-mp4/en.m4a', subtitles='', novoice_mp4='D:/tts/tmp/7996/20059c023f/novoice.mp4', noextname='1 (1)', shibie_audio=None, targetdir_mp4='E:/音频库/4.13/_video_out/1 (1)-mp4/1 (1).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=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='E:/音频库/4.13/1 (1).mp4', basename='1 (1).mp4', ext='mp4', dirname='E:/音频库/4.13', shound_del_name=None, uuid='20059c023f', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.89
frozen:True
language:zh
root_dir:D:/tts

1 Replies

这是由于网络代理设置不正确或代理服务不可用导致的。faster-whisper 在尝试从 HuggingFace 下载模型时,因代理问题而失败。

解决方案:

  1. 检查并修正代理设置:在主界面的“网络代理地址”文本框中,确认您填写的代理地址格式正确(例如 http://127.0.0.1:10808)。如果代理服务未运行或端口错误,请修正。
  2. 关闭代理:如果您没有可用的代理服务,或不确定如何设置,请直接清空“网络代理地址”文本框中的内容,然后重试。
  3. 手动下载模型:如果网络环境无法直接访问 HuggingFace,即使关闭代理也无法下载。此时,请按照以下步骤手动下载模型:

    • 在软件根目录的 models 文件夹内,创建文件夹 models--mobiuslabsgmbh--faster-whisper-large-v3-turbo
    • 访问模型页面:https://huggingface.co/mobiuslabsgmbh/faster-whisper-large-v3-turbo/tree/main
    • 将该页面所有的 .json.bin.txt 文件下载到上一步创建的文件夹中。
    • 重新启动软件并运行任务。

请查阅相关文档:

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