#7286 语音识别阶段出错[faster-whisper(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

171.91**9 Posted at: 1 hour ago

语音识别阶段出错[faster-whisper(内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):

File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions

File "httpx\_transports\default.py", line 127, in iter

File "httpcore\_sync\connection_pool.py", line 367, in iter

File "httpcore\_sync\connection_pool.py", line 363, in iter

File "httpcore\_sync\http11.py", line 349, in iter

File "httpcore\_sync\http11.py", line 341, in iter

File "httpcore\_sync\http11.py", line 210, in _receive_response_body

File "httpcore\_sync\http11.py", line 220, in _receive_event

File "contextlib.py", line 153, in exit

File "httpcore\_exceptions.py", line 14, in map_exceptions

httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 817453166 bytes, expected 3086912962)

The above exception was the direct cause of the following exception:

Traceback (most recent ca
......

_download_to_tmp_and_move(

File "huggingface_hub\file_download.py", line 1858, in _download_to_tmp_and_move

http_get(

File "videotrans\util\help_down.py", line 109, in _patched_http_get

File "huggingface_hub\utils\_validators.py", line 88, in _inner_fn

return fn(*args, **kwargs)

File "huggingface_hub\file_download.py", line 421, in http_get

for chunk in response.iter_bytes(chunk_size=constants.DOWNLOAD_CHUNK_SIZE):

File "httpx\_models.py", line 897, in iter_bytes

File "httpx\_models.py", line 951, in iter_raw

File "httpx\_client.py", line 153, in iter

File "httpx\_transports\default.py", line 126, in iter

File "contextlib.py", line 153, in exit

File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions

httpx.RemoteProtocolError: peer closed connection without sending complete message body (received 817453166 bytes, expected 3086912962)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 102, in process_task

File "videotrans\task\speech2text.py", line 100, in recogn

File "videotrans\recognition\__init__.py", line 211, in run

File "videotrans\recognition\_base.py", line 96, in run

File "videotrans\recognition\_whisper.py", line 50, in _download

File "videotrans\util\help_down.py", line 168, in check_and_down_hf

videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

[SpeechToText]语音转录: self.out_format='srt',self.copysrt_rawvideo=True,self.spk_insert=False
[TaskCfgSTT]
原始输入文件名: E:/欧美/1.mp4,
输出结果保存到文件夹: D:/a/output/recogn,
临时文件夹: D:/a/tmp/16192/b88d302165
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v2 断句方式:默认断句
发音语言:en
未选 降噪
代理地址:http://127.0.0.1:65532


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/a

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是:自动从 huggingface.co 下载 faster-whisper 模型(large-v2,约 3GB)过程中,网络连接被对端中断,导致模型下载不完整,触发 DownloadModelsError。这是网络问题,不是软件本身故障。

解决方案(推荐手动下载模型):

  1. 删除已下载的不完整模型目录:
    软件目录/models/models--Systran--faster-whisper-large-v2
  2. 手动下载 large-v2 全部文件:
    https://huggingface.co/Systran/faster-whisper-large-v2/tree/main
  3. 将下载的所有文件放入:
    软件目录/models/models--Systran--faster-whisper-large-v2
注意:若浏览器下载时出现重名自动改名(如 model(2).safetensors),必须改回原文件名再放入,否则软件无法识别。
  1. 若没有稳定的科学上网环境,建议改用较小的模型(如 smallmediumlarge-v3-turbo),模型体积更小、下载成功率更高。

替代方案:

  • 如果显存/性能允许,建议改用 large-v3-turbo,速度与质量兼顾,且文件更小。
  • 或者换用 Qwen-ASR(内置)openai-whisper(内置) 等其他渠道。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource