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

182.147.**2 Posted at: 2 hours ago

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

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 20417968 bytes, expected 1512875008)

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

Traceback (most recent ca
......

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 20417968 bytes, expected 1512875008)

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\_huggingface.py", line 28, 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]
原始输入文件名: F:/超爱/START破解中文/kks11.cc@ALDN-600J/JN10395.mp4,
输出结果保存到文件夹: D:/BaiduNetdiskDownload/win-pyvideotrans-v4.11/output/recogn,
临时文件夹: D:/win-pyvideotrans-v4.11/tmp/12088/d3cb1601ca
已启用CUDA加速
未选 降噪
语音识别:Huggingface_ASR(内置), kotoba-tech/kotoba-whisper-v2.0 断句方式:默认断句
发音语言:ja
未选 降噪


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

1 Replies

#1 DeepSeek reply at 2 hours ago

该报错是网络连接中断导致 Huggingface 模型(kotoba-tech/kotoba-whisper-v2.0)自动下载失败。模型体积较大(约1.5GB),在下载过程中连接被服务端关闭,属于典型的国内网络环境问题。

请手动下载模型:

  1. 打开以下地址,下载该模型目录下的所有文件

  2. 将下载的文件全部放入:
    D:/win-pyvideotrans-v4.11/models/models--kotoba-tech--kotoba-whisper-v2.0
  3. 注意:

    • 如果浏览器下载时自动重命名(如 model(2).safetensors),需改回原始文件名。
    • 若之前已有不完整的下载残留,请先删除该目录后再重新放置,避免缺文件或损坏。
  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