#2517 TaskCfg(cache_folder='C:/Users/Piers/Desktop/translate/tmp24728/29c4c0d3e4', target_dir='C:/Users/Piers/Desktop/GRAPH/TE

2408:8256* Posted at: 1 day ago 👁15

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

TaskCfg(cache_folder='C:/Users/Piers/Desktop/translate/tmp24728/29c4c0d3e4', target_dir='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254/en.srt', target_sub='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254/zh-cn.srt', source_wav='C:/Users/Piers/Desktop/translate/tmp24728/29c4c0d3e4/en.wav', source_wav_output='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254/en.m4a', target_wav='C:/Users/Piers/Desktop/translate/tmp24728/29c4c0d3e4/target.wav', target_wav_output='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254/zh-cn.m4a', subtitles='', novoice_mp4='C:/Users/Piers/Desktop/translate/tmp24728/29c4c0d3e4/novoice.mp4', noextname='20260107_170254', shibie_audio=None, targetdir_mp4='C:/Users/Piers/Desktop/GRAPH/TEST2/20260107_170254/20260107_170254.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=1, tts_type=0, recogn_type=0, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=True, cuda=False, name='C:/Users/Piers/Desktop/GRAPH/20260107_170254.mp4', basename='20260107_170254.mp4', ext='mp4', dirname='C:/Users/Piers/Desktop/GRAPH', shound_del_name=None, uuid='29c4c0d3e4', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:C:/Users/Piers/Desktop/translate

1 Replies

错误信息明确指出是代理设置问题。您正在使用本地模型 faster-whisper,它不需要网络代理,但软件可能因主界面或高级选项中的代理设置而尝试通过代理连接,导致失败。

请按以下步骤检查和修正:

  1. 检查主界面代理设置

    • 在主界面第5行“网络代理”文本框中,清空所有内容(如果之前填写了代理地址如 http://127.0.0.1:7890)。
    • 如果您的网络环境必须使用代理才能访问外网,请确保代理地址和端口正确且代理服务正在运行。
  2. 检查高级选项代理设置

    • 点击主界面第7行的“设置更多参数”或从菜单进入 工具 -> 选项 -> 高级选项
    • 在“通用设置”区域,检查“网络代理”一项是否被填写。如果填写了,请根据您的实际情况决定:

      • 如果使用本地模型(如 faster-whisper)无需代理:请清空此项。
      • 如果后续步骤需要使用在线服务(如 Google 翻译、OpenAI API):请确保填入正确且可用的代理地址(格式如 http://127.0.0.1:7860)。
  3. 重新运行任务

    • 修正代理设置后,返回主界面,务必勾选“清理已生成”选项,然后重新添加视频并开始任务。

核心要点:使用纯本地模型(faster-whisper, VITS等)时,网络代理设置应为空或指向一个有效的本地代理(如果系统全局需要)。此错误通常是因为代理文本框有内容但代理服务未运行或地址错误。

请查看更多参考文档:

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