|
1 năm trước cách đây | |
---|---|---|
.. | ||
.gitignore | 1 năm trước cách đây | |
README.md | 1 năm trước cách đây | |
decode-file.js | 1 năm trước cách đây | |
package.json | 1 năm trước cách đây | |
real-time-speech-recognition-microphone.js | 1 năm trước cách đây |
This folder contains examples about how to use the sherpa-ncnn WebAssembly module with nodejs for speech recognition.
cd ./nodejs-examples
npm i
Please visit https://github.com/k2-fsa/sherpa-ncnn/releases/tag/models to select more models.
The following is an example:
cd ./nodejs-examples
wget https://github.com/k2-fsa/sherpa-ncnn/releases/download/models/sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13.tar.bz2
tar xvf sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13.tar.bz2
rm sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13.tar.bz2
cd ./nodejs-examples
node ./decode-file.js
cd ./nodejs-examples
node ./real-time-speech-recognition-microphone.js