Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Feb 24, 2024
1 parent 0b54fd4 commit d587069
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: npm

on:
push:
branches:
- wasm-nodejs-2
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -70,7 +67,6 @@ jobs:
SHERPA_NCNN_VERSION=$(grep "SHERPA_NCNN_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
echo "SHERPA_NCNN_VERSION $SHERPA_NCNN_VERSION"
SHERPA_NCNN_VERSION="2.1.5"
cd scripts/nodejs
Expand Down
1 change: 1 addition & 0 deletions nodejs-examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
2 changes: 1 addition & 1 deletion nodejs-examples/decode-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');
const wav = require('wav');
const {Readable} = require('stream');

const sherpa_ncnn = require('sherpa-ncnn0');
const sherpa_ncnn = require('sherpa-ncnn');

function createRecognizer() {
let modelConfig = {
Expand Down
2 changes: 1 addition & 1 deletion nodejs-examples/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"naudiodon2": "^2.4.0",
"sherpa-ncnn0": "*",
"sherpa-ncnn": "*",
"wav": "^1.0.2"
}
}
2 changes: 1 addition & 1 deletion nodejs-examples/real-time-speech-recognition-microphone.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const portAudio = require('naudiodon2');
// console.log(portAudio.getDevices());

const sherpa_ncnn = require('sherpa-ncnn0');
const sherpa_ncnn = require('sherpa-ncnn');

function createRecognizer() {
let modelConfig = {
Expand Down

0 comments on commit d587069

Please sign in to comment.