Skip to content

Commit

Permalink
Add npmignore and pure javascript package
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Jun 3, 2020
1 parent db0a3d2 commit d507210
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,27 @@ python/vosk/*.c
python/vosk/*.h
python/vosk/*.i
python/vosk/vosk.py
python/vosk/vosk_wrap.cpp
python/test/db
python/test/hyp
python/test/model
python/test/ref
python/test/result.txt
python/test/wav.scp

# Java
*.so
java/org
java/model-en
java/*.cc
java/model-spk/
java/model/

# CSharp
csharp/gen
csharp/*.exe
csharp/*.c
csharp/model/
csharp/test.wav

# Node
nodejs/vosk_wrap.cc
Expand All @@ -48,5 +58,3 @@ nodejs/example/test.wav
nodejs/node_modules
nodejs/package-lock.json
nodejs/build


3 changes: 3 additions & 0 deletions nodejs/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
node_modules
vosk_wrap.cc
3 changes: 3 additions & 0 deletions webjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exports.printMsg = function() {
console.log("This is a message from the Vosk package");
}
20 changes: 20 additions & 0 deletions webjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "vosk-js",
"version": "0.3.0",
"description": "Node binding for continuous voice recoginition through vosk-api.",
"repository": {
"type": "git",
"url": "git://github.com/alphacep/vosk-api.git"
},
"main": "index.js",
"keywords": [
"speech",
"speech recognition",
"voice"
],
"author": "Alpha Cephei Inc.",
"license": "Apache 2.0",
"engines": {
"node": ">= 12.x.x"
}
}

0 comments on commit d507210

Please sign in to comment.