syl22-00 / pocketsphinx.js

Speech recognition in JavaScript and WebAssembly
1.49k stars 261 forks source link

Words.push_back accept 1 arguments only #134

Closed tlkiong closed 4 years ago

tlkiong commented 5 years ago

According to the doc (readme), to add words, do the following:

words.push_back(["HELLO", "HH AH L OW"], ["HELLO(2)", "HH EH L OW"]);

However, running that seems to give me the error:

"function VectorWords.push_back called with 2 arguments, expected 1 args!"

Is the doc wrong?

syl22-00 commented 4 years ago

Thanks @tlkiong , you are correct, the doc is wrong.