ONNX 模型库
返回模型

说明文档

OVOS - Whisper Medium 葡萄牙语

本模型是 remynd/whisper-medium-pt 模型的 ONNX 格式导出版本, 便于在边缘设备和基于 CPU 的推理环境中使用。

依赖

导出基于以下工具:

依赖可通过以下命令安装:

$ pip install optimum[onnxruntime] onnx-asr

使用方法

import onnx_asr
model = onnx_asr.load_model("OpenVoiceOS/whisper-medium-pt-onnx")
print(model.recognize("test.wav"))

导出

根据 onnx-asr/convert-model-to-onnx):

$ export FORCE_ONNX_EXTERNAL_DATA=1
$ optimum-cli export onnx --task automatic-speech-recognition-with-past --model remynd/whisper-medium-pt whisper-onnx
$ cd whisper-onnx && rm decoder.onnx* decoder_with_past_model.onnx*  # only the merged decoder is needed

许可证

许可证源自原始模型:Apache 2.0。更多详情请参阅 remynd/whisper-medium-pt

OpenVoiceOS/whisper-medium-pt-onnx

作者 OpenVoiceOS

↓ 11 ♥ 0

创建时间: 2026-02-23 12:20:58+00:00

更新时间: 2026-02-23 12:41:40+00:00

在 Hugging Face 上查看

文件 (16)

.gitattributes
README.md
added_tokens.json
config.json
decoder_model_merged.onnx ONNX
decoder_model_merged.onnx_data
encoder_model.onnx ONNX
encoder_model.onnx_data
generation_config.json
merges.txt
normalizer.json
preprocessor_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json