File size: 1,211 Bytes
178f262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
license: mit
language:
- en
library_name: onnx-asr
tags:
- onnx
- onnx-asr
- automatic-speech-recognition
- moonshine
base_model: UsefulSensors/moonshine-base
---

# Moonshine Base (ONNX)

Moonshine Base is a compact English speech-to-text model from
[Useful Sensors](https://github.com/usefulsensors/moonshine). It is an
encoder-decoder model that reads the raw 16 kHz waveform, so it needs no
log-mel preprocessor.

This repository is a mirror of the official ONNX export
[onnx-community/moonshine-base-ONNX](https://huggingface.co/onnx-community/moonshine-base-ONNX),
kept so that the OpenVoiceOS ONNX ASR collection is self-contained. The
weights are unchanged.

## Usage

```py
import onnx_asr

model = onnx_asr.load_model("moonshine-base")
print(model.recognize("test.wav"))
```

Quantized variants load with the `quantization` argument:

```py
model = onnx_asr.load_model("moonshine-base", quantization="quantized")
```

## Credits

Model by Useful Sensors Inc., released under the MIT license. Paper:
[Moonshine: Speech Recognition for Live Transcription and Voice Commands](https://arxiv.org/abs/2410.15608).
ONNX export by [onnx-community](https://huggingface.co/onnx-community).

## License

MIT