| Crates.io | tauri-plugin-sherpa-ncnn |
| lib.rs | tauri-plugin-sherpa-ncnn |
| version | 0.1.4 |
| created_at | 2025-03-09 09:02:04.408168+00 |
| updated_at | 2025-03-17 07:23:33.816351+00 |
| description | Real-time Speech recognition plugin for Tauri V2 Android. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1585294 |
| size | 235,101 |
A tauri plugin (now android) for sherpaNcnn.
The plugin is built by TinyWang. Notice: Model files must be configured manually!!!
Environment:
Linux Android_NDK cmake
git clone https://github.com/tinyvan/sherpa-ncnn-modified
sherpa-ncnn-modified is forked from [k2-fsa/sherpa-ncnn]([text](https://github.com/k2-fsa/sherpa-ncnn)) and some of its code has been modified to make it embedded in the project.
Next,you can run one of the following scripts in Linux !!!Please set the environment variable ANDROID_NDK before you run this script !!!Please set the environment variable ANDROID_NDK before you run this script
build-aarch64-linux-gnu.sh
build-android-arm64-v8a-with-vulkan.sh
build-android-arm64-v8a.sh
build-android-armv7-eabi.sh
build-android-x86-64.sh
build-android-x86.sh
After build you will get shared library file in build-..../install/lib folder,and just copy them to the jniLibs in the android code library of this tauri plugin.(You'd better follow the instructions in k2-fsa/sherpa-ncnn)
| 函数 Function Name | Android | iOS | Windows | macOS | Linux |
|---|---|---|---|---|---|
NcnnInitRecognizer |
✅ | ❌ | ❌ | ❌ | ❌ |
NcnnInitRecognizerFromAsset |
✅ | ❌ | ❌ | ❌ | ❌ |
NcnnInitMicrophone |
✅ | ❌ | ❌ | ❌ | ❌ |
NcnnStartRecognize x |
✅ | ❌ | ❌ | ❌ | ❌ |
NcnnStopRecognize |
✅ | ❌ | ❌ | ❌ | ❌ |
说明/Notes: