Automatic Speech Recognition
LiteRT
LiteRT
on-device
nnopt
android
npu
hexagon
qualcomm
asr
streaming
galaxy-s26-plus
Instructions to use nnopt-dev/moonshine-streaming-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use nnopt-dev/moonshine-streaming-LiteRT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from nnopt-dev/moonshine-streaming-LiteRT: direct link, hf CLI and curl.
- Browser
- Download file 3.42 kB
-
https://huggingface.co/nnopt-dev/moonshine-streaming-LiteRT/resolve/main/README.md
- Command line
-
hf download hf://nnopt-dev/moonshine-streaming-LiteRT/README.md
-
curl -L -o README.md https://huggingface.co/nnopt-dev/moonshine-streaming-LiteRT/resolve/main/README.md
3.42 kB
| license: mit | |
| base_model: moonshine-ai/moonshine-streaming | |
| pipeline_tag: automatic-speech-recognition | |
| tags: | |
| - on-device | |
| - nnopt | |
| - litert | |
| - tflite | |
| - android | |
| - npu | |
| - hexagon | |
| - qualcomm | |
| - asr | |
| - streaming | |
| - galaxy-s26-plus | |
| # moonshine-streaming on Samsung Galaxy S26+ (LiteRT) | |
| Ported and verified on a real Samsung Galaxy S26+ by [nnopt.dev](https://nnopt.dev) — AI agents that port and optimize models for the hardware you ship. | |
| The model is [moonshine-ai/moonshine-streaming](https://huggingface.co/moonshine-ai/moonshine-streaming) by Moonshine AI, and it is theirs. The LiteRT port in this repository is nnopt's work: nnopt job NN-466F3D. | |
| | | | | |
| |---|---| | |
| | Device | Samsung Galaxy S26+, Android 16 | | |
| | Chip | Snapdragon 8 Elite Gen 5 (SM8850) | | |
| | Processor | NPU (Hexagon HTP v81) for every model graph; CPU for WAV I/O, chunking, argmax, detokenizing | | |
| | Runtime | LiteRT 2.3.1 (Qualcomm dispatch), QNN 2.50.0 | | |
| | Precision | FP16 on the HTP (fp32-exported graphs, AOT-compiled; fp16 cross/self KV cache I/O) | | |
| | Modality | speech -> text (streaming ASR) | | |
| | Weights | included: models/*.tflite (4 graphs AOT-compiled for SM8850 by nnopt, Moonshine v2 Streaming Medium) and models/vocab.bin; Qualcomm's QNN runtime is fetched | | |
| | nnopt job | NN-466F3D (port) | | |
| | Folder | [`sm8850-npu-fp16/`](https://huggingface.co/nnopt-dev/moonshine-streaming-LiteRT/tree/main/sm8850-npu-fp16) | | |
| ## Verified results | |
| nnopt built the folder from a clean copy, deployed it to the device and checked it against the model's reference code on hidden inputs. The full report is `report.html` in the folder. | |
| - Passed. Word error rate vs reference 0.0% (bar at most 2.0%, original precision) | |
| - full check passed | |
| - no speculative decoding | |
| - Real-time factor 0.076 (faster than real time) | |
| - Latency 436 ms | |
| - Decode 40.3 tokens/s | |
| - Load time 286 ms | |
| - Peak memory 623 MB | |
| - 4 graphs, NPU 100% | |
| ## Use it | |
| ``` | |
| mkdir moonshine-streaming-LiteRT && cd moonshine-streaming-LiteRT | |
| curl -fsSL https://huggingface.co/nnopt-dev/moonshine-streaming-LiteRT/resolve/main/config.json -o config.json | |
| hf download nnopt-dev/moonshine-streaming-LiteRT --include "sm8850-npu-fp16/*" --local-dir . | |
| cd sm8850-npu-fp16 | |
| bash fetch.sh | |
| bash deploy.sh /data/local/tmp/moonshine # adb: runner, LiteRT, QNN libs, 4 NPU graphs | |
| adb push demo/input.wav /data/local/tmp/moonshine/in.wav | |
| adb shell 'cd /data/local/tmp/moonshine && sh ./run.sh --audio in.wav --out out.json --metrics m.json' | |
| ``` | |
| Needs: A Snapdragon SM8850 phone (Galaxy S26+), adb, ~1.3 GB free storage; curl and unzip on the host. Rebuilding the runner (`bash build.sh`) fetches the NDK itself. | |
| `README.md` in the folder has every flag, the requirements and the known limits; `REPRO.md` (where present) reproduces the measurements. | |
| ## License | |
| MIT, like moonshine-ai/moonshine-streaming: see LICENSE and NOTICE. LiteRT in `vendor/litert/` is Apache 2.0. Qualcomm's QNN runtime is not here: `fetch.sh` gets it from Maven Central, under Qualcomm's license. | |
| ## Made with nnopt | |
| [nnopt](https://nnopt.dev) is a platform where AI agents port, optimize and benchmark a model for a specific device. They write the runtime code on the real device, and a locked verification kit then checks the result against the model's own reference code before anything ships. Every number on this page comes from that check. | |
| Want your model on your device? Start a job at [nnopt.dev](https://nnopt.dev). | |