Downloads · 30 days
104K
17% of all-time downloads
istupakov/parakeet-tdt-0.6b-v3-onnx
parakeet-tdt-0.6b-v3-onnx is a automatic speech recognition model from istupakov. Use it when you need speech turned into text. The card lists the license as cc-by-4.0.
NVIDIA Parakeet TDT 0.6B V3 (Multilingual) model converted to ONNX format for onnx-asr.
Downloads · 30 days
104K
17% of all-time downloads
All-time downloads
613K
Public
Repo size
3.2 GB
Likes
71
Trending 1
Click a slice to open those files.
.data2.4 GB · 76%
From the Hugging Face model README
NVIDIA Parakeet TDT 0.6B V3 (Multilingual) model converted to ONNX format for onnx-asr.
Install onnx-asr
pip install onnx-asr[cpu,hub]
Load Parakeet TDT model and recognize wav file
import onnx_asr
model = onnx_asr.load_model("nemo-parakeet-tdt-0.6b-v3")
print(model.recognize("test.wav"))
Code for models export
import nemo.collections.asr as nemo_asr
from pathlib import Path
model = nemo_asr.models.ASRModel.from_pretrained("nvidia/parakeet-tdt-0.6b-v3")
onnx_dir = Path("nemo-onnx")
onnx_dir.mkdir(exist_ok=True)
model.export(str(Path(onnx_dir, "model.onnx")))
with Path(onnx_dir, "vocab.txt").open("wt") as f:
for i, token in enumerate([*model.tokenizer.vocab, "<blk>"]):
f.write(f"{token} {i}\n")