Comments (1)
We have not benchmarked sherpa-onnx on Android. However, we have compared the RTF of sherpa-ncnn and sherpa-onnx on macOS and Raspberry pi 4 Model B with streaming zipformer.
The following table compares the RTF for greedy search with 1 thread
sherpa-ncnn | sherpa-onnx | |
---|---|---|
macOS | 0.159 | 0.125 |
Raspberry Pi 4 Model B | 0.871 | 0.697 |
If speed is the only thing you care about, then I suggest that you choose sherpa-onnx.
It is a pain to compile onnxruntime from source if you don't use pre-compiled onnxruntime libs.
We have not managed to compile onnxruntime for 32-bit arm.
I don't know how easy it is to add a custom operator to onnxruntime.
The source code of ncnn is very well readable and it is easy to extend it. It also provides a tool PNNX to convert models from PyTorch. If there is an op that cannot be converted, it is straightforward to change PNNX and ncnn to support it.
One thing I want to mention is that the file size of libncnn.so for Android is less than 1.2 MB. If you customize it, you can get an even smaller lib. I don't know if there is any open-source inference framework that can produce such a small lib.
Also, ncnn supports non-NVidia GPUs, e.g., GPUs on your mobile phones and ARM GPUs on your embedded boards.
ncnn also supports RISC-V.
from sherpa-onnx.
Related Issues (20)
- Decoding method 'modified_beam_search' gives letters/words on silence, while 'greedy_search' works well HOT 17
- TTS WebAssembly for other languages not work HOT 10
- sherpa-onnx-offline-tts: Allow piping text using cat or text file input with command line parameter HOT 1
- sherpa-onnx-offline-tts: Allow piping audio from tts directly to stdout for further processing
- tts: Increase TTS volume to 0 DB.
- Android TTS: Some ideas for packaging tts engine and voices/models
- TTS: Add a SAPI 5 driver for Windows HOT 2
- sherpa-onnx-keyword-spotter 使用命令行工具 识别结果找不到 HOT 1
- 麦克风采样率和通道数的设置问题 HOT 1
- Export Time Info. HOT 2
- 说话人识别繁体字问题 HOT 5
- Issue with building and running sherpa-onnx gpu on Windows HOT 5
- 给Java初学者在windows下编译java api和jni的过程 HOT 1
- What is the difference between running silero-vad with sherpa-onnx compared to the original onnxruntime HOT 2
- 如何安装cpp-api HOT 2
- Unable to run the SherpaOnnx2Pass android example project HOT 4
- Obtaining Encoder Features HOT 1
- How to use android NNAPI?
- whisper offline subscribe error "Name:'/Expand' Status Message: invalid expand shape" HOT 7
- paraformer 模型无法使用 coreml provider HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa-onnx.