Comments (4)
Could you help test the online or offline websocket server in sherpa-onnx and see if the second request is much faster than the very first request?
By the way, we have similar methods as k2-fsa/sherpa in sherpa-onnx
sherpa-onnx/sherpa-onnx/csrc/online-transducer-model.h
Lines 44 to 45 in aa71087
sherpa-onnx/sherpa-onnx/csrc/online-transducer-model.h
Lines 54 to 55 in aa71087
It is not difficult to add warmup to sherpa-onnx if you find it is helpful to reduce the latency of the first request.
It may be tricky to save the model initial states during ONNX export I guess.
You don't need to save the initial states during model exporting. The initial state is constructed in the code in sherpa-onnx.
We only need some model parameters to construct the initial states.
from sherpa-onnx.
As I get better understanding of the code base, I realized that sherpa-onnx
rewrites the Python initialization code in C++. The warm-up process is actually already in place. I am closing this PR.
from sherpa-onnx.
@csukuangfj @jingzhaoou Could you point me to code where model initialization is rewritten in C++. Didn't quite understand the point from previous comment. We see that, Warmup is still not part of the online websocket server.
from sherpa-onnx.
There is no warmup in sherpa-onnx, I think.
from sherpa-onnx.
Related Issues (20)
- 使用 sherpa-onnx-streaming-zipformer-multi-zh-hans-2023-12-12 模型,热词异常 HOT 5
- 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
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.