#5480 TaskCfg(cache_folder='F:/解说配音软件/tmp/20632/113401d14e', target_dir='F:/解说配音软件/output/recogn', remove_noise=False, is_sepa

39.163* Posted at: 4 hours ago

语音识别阶段出错 [openai-whisper(本地)] 连接被拒绝,目标服务可能未运行或端口错误
Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 146, in recogn
File "videotrans\recognition\__init__.py", line 245, in run
File "videotrans\recognition\_base.py", line 80, in run
File "videotrans\recognition\_overall.py", line 182, in _exec
RuntimeError: Traceback (most recent call last):
File "urllib\request.py", line 1348, in do_open
File "http\client.py", line 1282, in request
File "http\client.py", line 1328, in _send_request
File "http\client.py", line 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, in send
File "http\client.py", line 1447, in connect
File "http\client.py", line 941, in connect
File "socket.py", line 845, in create_connection
File "socket.py", line 833, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 114, in run
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:

TaskCfg(cache_folder='F:/解说配音软件/tmp/20632/113401d14e', target_dir='F:/解说配音软件/output/recogn', remove_noise=False, is_separate=False, detect_language='es', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='F:/解说配音软件/output/recogn/7632662901039320351_original.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='7632662901039320351_original', shibie_audio='F:/解说配音软件/tmp/20632/113401d14e/7632662901039320351_original-1782390759.325301.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=1, model_name='tiny', split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='F:/抖音视频下载/7632662901039320351_original.mp4', basename='7632662901039320351_original.mp4', ext='mp4', dirname='F:/抖音视频下载', shound_del_name=None, uuid='113401d14e', 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.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:F:/解说配音软件

1 Replies

这是网络连接失败导致无法下载 openai-whisper 模型文件(tiny.pt)。首次使用 openai-whisper 时必须从 Hugging Face 或 OpenAI 服务器下载模型,如果你的计算机无法直接访问这些服务器(例如受限网络),就会报 "连接被拒绝"。

解决步骤(任选其一)

  1. 配置网络代理
    在主界面顶部 网络代理 输入框中填写你的代理地址(如 http://127.0.0.1:7890),然后重新启动任务。如果已填写仍无效,检查代理是否运行正常。
  2. 手动下载模型文件
    手动下载 tiny.pt 文件并放到软件根目录下的 models/ 文件夹内。

  3. 更换为其他语音识别渠道
    如果你不希望配置代理或手动下载,可以在主界面语音识别渠道中改用以下方案(国内网络无需代理):

    • faster-whisper(本地):同样本地运行,首次下载需手动配置(参考知识库第14节手动下载指南),或改用 tiny 模型自动下载(如果代理可用)。
    • Qwen-ASR(本地)阿里FunASR:中文识别效果好,首次自动下载。
    • 微软语音识别(在线免费,无需代理)。
  4. 仅适用于此任务
    如果你 不要求完整视频翻译,也可以使用 批量为字幕配音批量语音转字幕 面板,这些面板支持纯文本输入,不依赖模型下载。

参考文档

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