Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pocketsphinx.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!fs.existsSync('./resources/output.raw')) {
}

// run process for pocketsphinx_continuous
const command = `./node_modules/pocketsphinx/bin/pocketsphinx_continuous -infile ./resources/output.raw -lm ./resources/corpus/${prefix}.lm -dict ./resources/corpus/${prefix}.dic`;
const command = `./node_modules/pocketsphinx/local/bin/pocketsphinx_continuous -infile ./resources/output.raw -lm ./resources/corpus/${prefix}.lm -dict ./resources/corpus/${prefix}.dic`;
exec(command, (error, stdout, stderr) => {
if (error) {
throw error;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"install": "npm run install:sphinxbase && npm run install:pocketsphinx",
"install:sphinxbase": "napa cmusphinx/sphinxbase && npm run build:sphinxbase",
"install:pocketsphinx": "napa cmusphinx/pocketsphinx && npm run build:pocketsphinx",
"build:sphinxbase": "cd ./node_modules/sphinxbase && ./autogen.sh && ./configure --prefix=`pwd` && make && make install && cd ../..",
"build:pocketsphinx": "cd ./node_modules/pocketsphinx && ./autogen.sh && ./configure --prefix=`pwd` && make && make install && cd ../..",
"build:sphinxbase": "cd ./node_modules/sphinxbase && ./autogen.sh && ./configure --prefix=$PWD/local --libdir=$PWD/local/lib && make install && cd ../..",
"build:pocketsphinx": "cd ./node_modules/pocketsphinx && ./autogen.sh && LDFLAGS=-Wl,-L../sphinxbase/local/lib,-L./local/lib ./configure --prefix=$PWD/local --libdir=$PWD/local/lib && make && make install && cd ../..",
"config:convert": "node ./lib/convert-commands.js"
},
"keywords": [
Expand Down