syl22-00 / pocketsphinx.js

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

Lookup API example #39

Open ignjat opened 9 years ago

ignjat commented 9 years ago

Can we get one or at least a pointer to an example in C? Very much appreciated.

nshmyrev commented 9 years ago

What do you mean by "lookup API"?

ignjat commented 9 years ago

I am talking about the APIs added 6 days ago via this commit: 6f8e45957051416829cb390b395fe2425046ab46

syl22-00 commented 9 years ago

Then it's a JavaScript API (that's what pocketsphinx.js does). The functions lookupWord and lookupWords are not yet documented yet very simple: they take a word string and an array of word strings respectively and return the id (and an array of ids) of the words that are in the dictionary.