stt -  wyoming-funasr arm64 onnx

Wyoming asr  server for Home assistant: Step-by-Step Guide for Developers

Building FunASR with sherpa-onnx on an ARM64 (aarch64) system.

 

 

mkdir -p  /funasr-wyoming-sherpa-onnx

 

 cd /funasr-wyoming-sherpa-onnx

 

 python3 -m venv venv

 

 source venv/bin/activate

 

Install sherpa-onnx

Install

pip3 install sherpa-onnx sherpa-onnx-bin

 

Installing collected packages: sherpa-onnx-core, sherpa-onnx-bin, sherpa-onnx
Successfully installed sherpa-onnx-1.12.23 sherpa-onnx-bin-1.12.23 sherpa-onnx-core-1.12.23

https://k2-fsa.github.io/sherpa/onnx/python/install.html#method-1-from-pre-compiled-wheels-cpu-only

 

 

# pip3 show sherpa-onnx

output

Name: sherpa_onnx
Version: 1.12.23
Summary: 
Home-page: https://github.com/k2-fsa/sherpa-onnx
Author: The sherpa-onnx development team
Author-email: [email protected]
License: Apache licensed, as found in the LICENSE file
Location: /funasr-wyoming-sherpa-onnx/venv/lib/python3.11/site-packages

 

Download Model

This section describes how to download pre-trained SenseVoice models.

download pre-trained  models(SenseVoice)

cd /funasr-wyoming-sherpa-onnx



wget https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2025-09-09.tar.bz2

tar xvf sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2025-09-09.tar.bz2

rm sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2025-09-09.tar.bz2

 

output

root@raspberrypi:/funasr-wyoming-sherpa-onnx# tree -L 2
.
├── sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2025-09-09
│   ├── model.int8.onnx
│   ├── README.md
│   ├── test_wavs
│   └── tokens.txt

 

server.py

 

step 1. install numpy

pip3 install numpy

output

Installing collected packages: numpy
Successfully installed numpy-2.4.2

 

pip3 install wyoming==1.8.0

output

  Downloading https://www.piwheels.org/simple/wyoming/wyoming-1.8.0-py3-none-any.whl (39 kB)
Installing collected packages: wyoming
Successfully installed wyoming-1.8.0

 

useful links

how to download pre-trained SenseVoice models.

https://k2-fsa.github.io/sherpa/onnx/sense-voice/pretrained.html#sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17

 

https://k2-fsa.github.io/sherpa/onnx/sense-voice/pretrained.html#sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2025-09-09-chinese-english-japanese-korean-cantonese

 

 

 

Comments

Be the first to post a comment

Post a comment