Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Feb 24, 2024
1 parent 99aaa2a commit 69a03d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nodejs-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ This folder contains examples about how to use the sherpa-ncnn WebAssembly modul
with nodejs for speech recognition.

- [decode-file.js](./decode-file.js) it shows how to decode a file
- [real-time-speech-recognition-microphone.js](./real-time-speech-recognition-microphone.js) it shows
how to do real-time speech recognition with a microphone

## Usage

### Install dependencies

```bash
cd ./nodejs-wasm-examples
cd ./nodejs-examples
npm i
```

Expand All @@ -22,7 +24,7 @@ select more models.
The following is an example:

```bash
cd ./nodejs-wasm-examples
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
Expand All @@ -31,11 +33,15 @@ rm sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13.tar.bz2
### Decode a file

```bash
cd ./nodejs-examples

node ./decode-file.js
```

### Real-time speech recognition from a microphone

```bash
cd ./nodejs-examples

node ./real-time-speech-recognition-microphone.js
```

0 comments on commit 69a03d8

Please sign in to comment.