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

15.164**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 1387921431 bytes, expected 1617884929)

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

Traceback (most recent c
......

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 1387921431 bytes, expected 1617884929)

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=False,self.spk_insert=True
[TaskCfgSTT]
原始输入文件名: C:/Users/Acer/Projects/AI-Study/资料库/课程录音/课程_20260908_100252.wav,
输出结果保存到文件夹: D:/Software/pyvideotrans/output/recogn,
临时文件夹: D:/Software/pyvideotrans/tmp/27244/14676135d4
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo 断句方式:默认断句
发音语言:ru
未选 降噪
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.22631-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/Software/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于模型下载过程中网络连接中断导致的。日志显示 peer closed connection without sending complete message body (received 1387921431 bytes, expected 1617884929),即下载到约 1.38GB 时连接被强制断开,模型文件下载不完整。

解决方案

1. 先删除不完整的模型文件
模型下载失败后可能会留下残缺文件,请先进入以下文件夹,删除全部内容(如果存在):

D:/Software/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo

2. 检查代理设置
你当前配置了代理 http://127.0.0.1:7897,但下载依然中断,说明代理连接不稳定。建议:

  • 确认代理软件正在运行,且端口为 7897
  • 尝试更换更稳定的代理节点
  • 或关闭代理,使用软件内置的镜像源重试(软件会自动在国内镜像站 hf-mirror.com 下载)

3. 手动下载模型(推荐,最可靠)
由于模型体积较大且自动下载易失败,建议手动下载:

请将下载后的所有模型文件(如 model.safetensorsconfig.jsontokenizer.json 等)完整放入该文件夹,不要修改文件名

如果无法访问 HuggingFace,也可以使用国内镜像站:

4. 重新启动软件并重试任务

请查阅相关文档:

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