#5193 TaskCfgVTT(uuid='579bd6a52e', name='C:/Users/59709/Desktop/6月15日.mp3', dirname='C:/Users/59709/Desktop', noextname='6月15

138.2* Posted at: 4 hours ago

:Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:
语音识别阶段出错:openai-whisper(本地), 翻译字幕阶段出错: 微软(免费), 配音阶段出错:Edge-TTS(免费)
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\trans_create.py", line 322, in recogn
File "videotrans\recognition\__init__.py", line 190, in run
File "videotrans\recognition\_base.py", line 94, in run
File "videotrans\recognition\_whisper.py", line 34, in _exec
File "videotrans\recognition\_whisper.py", line 77, in _openai
File "videotrans\configure\base.py", line 253, in _new_process
videotrans.configure.excepts.VideoTransError: :Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1283, in request
File "http\client.py", line 1329, in _send_request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "http\client.py", line 1448, in connect
File "http\client.py", line 942, in connect
File "socket.py", line 857, in create_connection
File "socket.py", line 845, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 51, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 73, in _download
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1351, in do_open
urllib.error.URLError:
TaskCfgVTT(uuid='579bd6a52e', name='C:/Users/59709/Desktop/6月15日.mp3', dirname='C:/Users/59709/Desktop', noextname='6月15日', basename='6月15日.mp3', ext='mp3', target_dir='C:/Users/59709/Desktop/6月15日-mp3', cache_folder='D:/software-anzhuang/pyVideoTrans/tmp/19228/579bd6a52e', is_cuda=False, source_language='阿拉伯语', source_language_code='ar', source_sub='C:/Users/59709/Desktop/6月15日-mp3/ar.srt', source_wav='D:/software-anzhuang/pyVideoTrans/tmp/19228/579bd6a52e/ar.wav', source_wav_output='C:/Users/59709/Desktop/6月15日-mp3/ar.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/59709/Desktop/6月15日-mp3/zh-cn.srt', target_wav='D:/software-anzhuang/pyVideoTrans/tmp/19228/579bd6a52e/target.wav', target_wav_output='C:/Users/59709/Desktop/6月15日-mp3/zh-cn.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ar', recogn_type=1, model_name='tiny', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/59709/Desktop/6月15日-mp3/6月15日.mp4', novoice_mp4='D:/software-anzhuang/pyVideoTrans/tmp/19228/579bd6a52e/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/software-anzhuang/pyVideoTrans/tmp/19228/579bd6a52e/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/software-anzhuang/pyVideoTrans

1 Replies

这是由于从 huggingface.co 下载 openai-whisper 模型时网络连接被拒绝。原因通常是你的网络无法直接访问 huggingface 服务器(被墙或防火墙拦截)。


解决方案(任选其一)

方案一:配置网络代理(推荐)

  1. 在主界面第 5 行“网络代理”输入框中,填写你的代理地址,例如 http://127.0.0.1:7890(根据你 VPN 的实际端口调整)。
  2. 重新执行任务,软件会走代理下载模型。

方案二:换用 faster-whisper(本地) 渠道并手动下载模型

faster-whisper 支持国内镜像手动下载,且效果相似。

  1. 在主界面语音识别渠道处,切换为 faster-whisper(本地)
  2. 进入 高级选项 -> 语音识别参数,将模型改为 tiny(与你当前一致)。
  3. 手动下载 tiny 模型(国内镜像地址):
    https://modelscope.cn/models/himyworld/fasterwhisper/files
    下载 models--Systran--faster-whisper-tiny 文件夹中的所有文件,放入软件根目录下的 models/models--Systran--faster-whisper-tiny/ 文件夹中。
  4. 重新启动软件执行。

方案三:继续使用 openai-whisper(本地) 并手动下载模型

  1. 手动下载 whisper-tiny 模型:
    访问 https://huggingface.co/openai/whisper-tiny/tree/main,下载所有 .bin.json.txt 文件。
  2. 在软件根目录的 models 文件夹下创建 models--openai--whisper-tiny 文件夹,将下载的文件放入。
  3. 重启软件执行。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource