GithubHelp home page GithubHelp logo

syl22-00 / pocketsphinx.js Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 261.0 39.95 MB

Speech recognition in JavaScript and WebAssembly

CMake 1.65% C 0.71% C++ 4.50% JavaScript 78.90% CSS 2.39% HTML 11.73% Python 0.12%

pocketsphinx.js's People

Contributors

abhilash-chandran avatar aqiank avatar jdangerx avatar jenweber avatar mavidser avatar miguelmota avatar syl22-00 avatar webbp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pocketsphinx.js's Issues

Tmat error

Hi,
First, thanks for your project it's very promising !

I have a problem with loading acoustic model as explained on 4.3 h :

recognizer.postMessage('pocketsphinx.js');
recognizer.postMessage({command: 'load',
callbackId: id,
data: ["model/mdef.js",
"model/variances.js",
"model/means.js",
"model/mixture_weights.js",
"model/noisedict.js",
"model/transition_matrices.js",
]
});

and I get this error on my JS Console :

INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none' js/pocketsphinx.js:1
INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0 js/pocketsphinx.js:1
INFO: mdef.c(517): Reading model definition: /mdef js/pocketsphinx.js:1
INFO: bin_mdef.c(181): Allocating 85844 * 8 bytes (670 KiB) for CD tree
ERROR: "acmod.c", line 102: No tmat file specified

My config : MacOSX, Chrome 37.0

You know how I can resolve it ?

Thanks a lot

Rejecting out of grammar utterances

Hi

I'd like to thank you for porting Pocketsphinx to javascript, I am constantly amazed
at what you can do in the browser today.

This isn't really a bug or a problem but more of a question as to how to get the best
results. I am very new to speech recognition, so any help would be great.

I am trying to use pocketsphinx to recognize a relatively small number of keywords
and a very simple grammar. However it assumes any random sound or phrase must come from the grammar, which means I get a lot of false positives.

I found http://cmusphinx.sourceforge.net/wiki/sphinx4:rejectionhandling which has a few options. It seems confidence scores aren't exposed via Javascript. I also found
http://sourceforge.net/p/cmusphinx/discussion/speech-recognition/thread/c5ad9336/ which suggests I can embed a phone loop in the FSG we pass via Javascript,
which sounded promising.

I tried having a zero to zero loop in my grammar with every option listed on
http://www.speech.cs.cmu.edu/cgi-bin/cmudict

e.g.

["GARB_AA","AA"],
["GARB_AE","AE"],
...

in the word list
and

{from: 0, to: 0,  word: "GARB_AA"},
{from: 0, to: 0,  word: "GARB_AE"},
...

in the grammar. But unsurprisingly all I get then is the garbage entries.

Do you have any suggestions as to how to set up a PocketSphinx.js-friendly grammar
that can ignore out of grammar words?

Thanks!

Example with official Language Models as provided by Pocketsphinx

Hi,

I'm just getting 'deeper' into speech-recognition and would really benefit from an example using the 'official language models' files as they are provided for pocketsphinx here: http://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/

Right now the examples use simple arrays with lists of words, but it would really help me to see a 'real' example where a real language model + dictionary is used.

Would that be possible?

I need to develop a generic voice recognition website

I have a project that I've to create a website with a voice recognition chatbot. User will ask there queries by using mic and it will transform voice into text and reply to them.
For that I downloaded a generic en_us acoustic mode (57 MB) and trying building it with pocketsphinx, which obviously create a very large size pocketsphinx.js file.
my question is, if the js file size is too high then how will it be downloaded into user's browsers, as it will take a lot of time to download and then enable voice.
So, isn't there is a better workaround for that, that there is a small js file which transform all users queries easily?
Also kindly clear my confusion, what is the difference b/w acoustic model, statistical model and dictionary files?
Do I need all of those to develop a generic voice recognition website?

Thanks in advance.

compiled pocketsphinx.js does not work

Hi,
I have been trying to implement voice recognition to a webpage for my project, and to improve accuracy , i followed the steps given in http://cmusphinx.sourceforge.net/wiki/tutorialadapt . I am doing this in ubuntu 12.04 LTS.
when i run cmake with emscripten, the build files are generated without errors but when i run make , the following warnings shows up :

warning: unresolved symbol: _embind_register_class_function
warning: unresolved symbol: _embind_register_class_constructor
warning: unresolved symbol: _embind_register_class
warning: unresolved symbol: _embind_register_value_object_field
warning: unresolved symbol: _embind_finalize_value_object
warning: unresolved symbol: _embind_register_value_object
warning: unresolved symbol: _emval_undefined
warning: unresolved symbol: _emval_take_value
warning: unresolved symbol: _emval_decref
warning: unresolved symbol: _emval_incref
warning: unresolved symbol: _embind_register_value_array_element
warning: unresolved symbol: _embind_finalize_value_array
warning: unresolved symbol: _embind_register_value_array
warning: unresolved symbol: _embind_register_enum_value
warning: unresolved symbol: _embind_register_enum
warning: unresolved symbol: fast_logmath_add
warning: unresolved symbol: _embind_register_void
warning: unresolved symbol: _embind_register_bool
warning: unresolved symbol: _embind_register_integer
warning: unresolved symbol: _embind_register_float
warning: unresolved symbol: _embind_register_std_string
warning: unresolved symbol: _embind_register_std_wstring
warning: unresolved symbol: _embind_register_emval
warning: unresolved symbol: _embind_register_memory_view
warning: Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
warning: See https://github.com/kripken/emscripten/wiki/CodeGuidelinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts
[100%] Built target pocketsphinx.js

Though the pocketsphinx.js file is generated , but it does not seem to work, i.e., the recognizer does not get ready when i replace this with your one in the 'webapps' folder.
I dont know what to do now..
Please help

Errors and warnings from the closure compiler

audioRecorder.js:
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property getChannelData never defined on e.inputBuffer at line 26 character 6
e.inputBuffer.getChannelData(0),
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property inputBuffer never defined on e at line 26 character 6
e.inputBuffer.getChannelData(0),
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property getChannelData never defined on e.inputBuffer at line 27 character 6
e.inputBuffer.getChannelData(1)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property inputBuffer never defined on e at line 27 character 6
e.inputBuffer.getChannelData(1)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property connect never defined on source at line 61 character 1
source.connect(this.node);

audioRecorderWorker.js:
JSC_USED_GLOBAL_THIS: dangerous use of the global this object at line 5 character 0
this.onmessage = function(e){
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property config never defined on e.data at line 8 character 11
init(e.data.config);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property sampleRate never defined on config at line 20 character 19
inSampleRate = config.sampleRate;
^
JSC_USED_GLOBAL_THIS: dangerous use of the global this object at line 52 character 1
this.postMessage(output);
^

recognizer.js:
JSC_WRONG_ARGUMENT_COUNT: Function Window.prototype.postMessage: called with 1 argument(s). Function requires at least 2 argument(s) and no more than 3 argument(s). at line 6 character 1
self.postMessage({});
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property callbackId never defined on event.data at line 13 character 29
initialize(event.data.data, event.data.callbackId);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property callbackId never defined on event.data at line 16 character 23
load(event.data.data, event.data.callbackId);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property callbackId never defined on event.data at line 19 character 27
addWords(event.data.data, event.data.callbackId);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property callbackId never defined on event.data at line 22 character 29
addGrammar(event.data.data, event.data.callbackId);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property callbackId never defined on event.data at line 25 character 29
addKeyword(event.data.data, event.data.callbackId);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property Config never defined on Module at line 49 character 21
var config = new Module.Config();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property AudioBuffer never defined on Module at line 50 character 17
buffer = new Module.AudioBuffer();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property push_back never defined on config at line 55 character 2
config.push_back([p[0],p[1]]);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 64 character 15
if (output != Module.ReturnType.SUCCESS) post({status: "error", command: "in...
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 64 character 15
if (output != Module.ReturnType.SUCCESS) post({status: "error", command: "in...
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property Recognizer never defined on Module at line 66 character 18
recognizer = new Module.Recognizer(config);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property Segmentation never defined on Module at line 67 character 20
segmentation = new Module.Segmentation();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property RUNTIME_ERROR never defined on Module.ReturnType at line 68 character 82
...tus: "error", command: "initialize", code: Module.ReturnType.RUNTIME_ERROR});
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 68 character 82
...tus: "error", command: "initialize", code: Module.ReturnType.RUNTIME_ERROR});
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 71 character 11
config.delete();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property VectorWords never defined on Module at line 85 character 17
var words = new Module.VectorWords();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property push_back never defined on words at line 88 character 24
if (w.length == 2) words.push_back([w[0], w[1]]);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 91 character 15
if (output != Module.ReturnType.SUCCESS) post({status: "error", command: "ad...
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 91 character 15
if (output != Module.ReturnType.SUCCESS) post({status: "error", command: "ad...
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 93 character 7
words.delete();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property VectorTransitions never defined on Module at line 104 character 27
var transitions = new Module.VectorTransitions();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property push_back never defined on transitions at line 110 character 6
transitions.push_back(t);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property Integers never defined on Module at line 113 character 20
var id_v = new Module.Integers();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 115 character 19
if (output != Module.ReturnType.SUCCESS) post({status: "error", command:...
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 115 character 19
if (output != Module.ReturnType.SUCCESS) post({status: "error", command:...
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 117 character 17
transitions.delete();
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 118 character 10
id_v.delete();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property Integers never defined on Module at line 128 character 20
var id_v = new Module.Integers();
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 130 character 19
if (output != Module.ReturnType.SUCCESS) post({status: "error", command:...
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 130 character 19
if (output != Module.ReturnType.SUCCESS) post({status: "error", command:...
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 132 character 10
id_v.delete();
^
JSC_WRONG_ARGUMENT_COUNT: Function parseInt: called with 1 argument(s). Function requires at least 2 argument(s) and no more than 2 argument(s). at line 142 character 38
output = recognizer.switchSearch(parseInt(id));
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 143 character 19
if (output != Module.ReturnType.SUCCESS) {
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 143 character 19
if (output != Module.ReturnType.SUCCESS) {
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 149 character 15
if (output != Module.ReturnType.SUCCESS)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 149 character 15
if (output != Module.ReturnType.SUCCESS)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 160 character 15
if (output != Module.ReturnType.SUCCESS)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 160 character 15
if (output != Module.ReturnType.SUCCESS)
^
JSC_INVALID_ES3_PROP_NAME: Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option. at line 166 character 4
final: true});
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property push_back never defined on buffer at line 176 character 5
buffer.push_back(0);
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property ReturnType never defined on Module at line 180 character 15
if (output != Module.ReturnType.SUCCESS)
^
JSC_POSSIBLE_INEXISTENT_PROPERTY: Property SUCCESS never defined on Module.ReturnType at line 180 character 15
if (output != Module.ReturnType.SUCCESS)
^
pocketsphinx.js:
JSC_PARSE_ERROR: Parse error. primary expression expected at line 1 character 37
_setErrNo(ERRNO_CODES.EBADF);return-1}}function _fileno(stream){stream=FS.get...
^

Need info for SLM.

i have created a new pocketsphinx.js using customized AM, LM and Dict. I am taking your Live.html as a base to test it.
Do i need to still add the Grammer at runtime? when i am not feeding grammer at runtime and pressing start button. getting error like
Error in start with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in process with code [object Object]
Error in stop with code [object Object]

i tried like recorder.start(0) /recorder.start() (updated under startRecording) but still not able to start recording. if i am feeding grammer and supplying the returned ID by command "addGrammer". it is working fine.
Please help me.

Demo doesn't work

Hi,
Great stuff. But I tried the digits and OSes on the demo page but it doesn't work. It often recognizes one as four , and many redundant digits
I thought I'd just let you know. This kinda prevents me from using the library when the demo doesn't work well

Using pocketsphinx.js with node.js outside of a browser?

First, I want to thank you tremendously for porting pocketsphinx to Javascript! I'm currently working on a node.js project that will use pocketsphinx. But my knowledge of python is very basic, so I was searching for a node.js module/wrapper, and found this!

But before I dig in, I want to make sure this will work outside of a browser, using node.js. If I'm reading the README correctly, I can use the pocketsphinx.js and related files, but I'm on my own to modify the recognizer.js code to fit what I'm doing (or replace it altogether) as it's built to use browser objects. Is that correct? Or would I be better off going back to using the regular version of pocketsphinx?

count words

is there any way to count words of what i say ??

Input not taken by recognizer

I am using pocketsphinx.js and trying to import acoustic language models, but the recognizer is idle and not recognizing any input. I made a few changes to the live.html code. The changes include displaying the output or the recognized text in a text form and a timeout function so that the recording stops after a certain interval. After these changes are made I tried to import the respective language models for better accuracy, which I could not do it properly. I have included the zip folder of the project below. In that the original project is VoiceToText.html and the folder contains all the files that I had mentioned in the program.

https://www.dropbox.com/sh/ybietrt27jkqzwx/AABGHpwm4uEmBrE3m5_-eVLWa?dl=0

PocketSphinx + Google SpeechRecognition + Android = NO

I'm now trying to create an android app that will listen for a trigger word, such as "VOICE" and then initiate Google SpeechRecognition. I've built the entire application and tested it in a DESKTOP browser and it works perfectly. (The project is HTML5)

However, when I move this project to Android there is a conflict. I CAN successfully recognize the trigger word but when I then try to initiate web speech recognition it won't work. It appears that the audio (mic) is still locked to pocketSphinx.js. I have tried stopping the recognizer before initiating web speech but no solution worked - I tried using stopRecording() and postRecognizerJob({command: 'stop'}) but neither worked. Is there a way to "release" pocketSphinx (and reinitiate it) so other applications can access the microphone?

Excessive resource use after 'stop' is called

My web application listens to the user speak. When it recognizes a phrase, recognition is stopped, then it loads an MP4 into a video tag and plays it. The user might do this 50 times in one session, speak -> stop recog -> play video -> start recog

The clips might be anywhere from 2 seconds to 20. The issue I'm having is that after about 5 seconds of video playback, the video starts behaving like the audio is out of sync and jittery (like you would see if you were doing a lot of CPU intensive background tasks). If I turn off speech, it does't happen. It's clear that the performance hit is coming from something that the speech recognizer is doing, but the recognizer is clearly stopped.

What can I do to address this? Is there a way to completely halt all processing temporarily?

Node Simple Server as opposed to Python Simple Server

In the README you suggest using a python simple server (which works great) but would it be better to set up a node simple server in the examples to keep consistency with javascript? It is really easy to do so ( I already did it myself by following this suggestion) and I would be happy to send in a pull request to set it up if that would help.

Segmentation tests failing for pocketsphinx.js

I ran the test suite and found 18 failures, in 15.9-34 excluding every third test ("recognizing audio"). This corresponds to lines 603-628 in tests/js/tests.js. Logs are here.

Looks like it is having trouble getting the right start and end frames exactly right, but can get the words fine.

Additionally in the console I saw that files tests/js/1.js, tests/js/2.js, ..., tests/js/7.js are requested but don't exist. Could this somehow be related?

Sphinx in french

Hi

I'm trying to build a speach to text in node.js, but I'm french and I want to do it in french.

How I can use pocketsphinx.js in fench ?

I have to recompile with french dictonnary ?

No keywords ever recognized

I cloned the repo, checked out the gh-pages branch, and ran the keyword example page. The script runs, but the "count" attribute never comes through. I'm guessing that means the recognizer is never picking up on the keywords, but it works fine on your site. Not sure what would be happening here.

Erros compilation

Help me, please! Errors (toString) when compiling with -DHMM_BASE, -DHMM_FOLDERS. Output file size pocketsphinx.js - 800Kb

222

Compile pocketsphinx.js in CMake (cmake-gui)

Hi,

I'm having trouble compiling pocketsphinx.js with CMake for Windows x64. I set MinGW Makefiles (mingw32-make already installed) and I specified toolchain file for cross-compiling. No error in CMake, but pocketsphinx.js file is not generated. EMSCRIPTEN and HMM_EMBED is false.

Thanks in advance.

major lib rewrite

Thanks a lot for the work compiling pocketsphinx using emscripten! This makes my life much easier :P Also, documentation is quite detailed (:

However, i think the struture of this lib can be improved significantly. Thus, i will create separate issues and link them here.

[ ] #19
[ ] #20

Sentence matching

Sorry to go slightly off topic, this is more a call for best practice than an issue with code.

My usage of pocketsphinx is a bit unorthodox: I need to use the recognizer to match a known sentence to the user's pronunciation of that sentence. Ex. : "Hello how are you?".

It's, essentially, a CNC speech recognition case with only one command, the command being a single well defined sentence. So, in a sense, both using a grammar - and real time dictation with continuous recognition, is not exactly convenient.

I attempted three workarounds:

  • Using keyword spotting and seeing if all the words contained within the sentence are spotted (not very reliable)

or

  • Building a grammar which strictly matches the sentence ({from:0, to: 1, word: "hello"}, {from:1, to: 2, word: "how"}, {from:2, to:3, word: "are"}, {from:3 to:4, word:"you"})

or

  • Building a grammar where the whole sentence is presented as a "word", and then spotting that word (example: wordList = [["HELLO HOW ARE YOU", "HH AH L OW HH AW AA R Y UW"])

Is there any better way that I am entirely missing, and perhaps a way of returning a confidence value for each word or hypothesis?

Thanks
a.

ps. the main problem, though, seems to be that pretty much everything is recognized as a word or even the whole sentence I have described in the grammar. Noise, random mumbling. I expected the problems with recognition to be at the other end of the spectrum (missed recognition of something which is actually clearly and loudly pronounced). Is there anything I should tune to make recognition way, way more strict?

Using PocketSphinx.js Demo with Alternative Acoustic Model

I am trying to get the pocketsphinx.js demo working with an alternative acoustic model, specifically the HUB4 model. However, Iโ€™m having some trouble and would appreciate some assistance. Below I outline the steps I have taken, followed by the error messages/behavior Iโ€™m experiencing.

First I tried just compiling it myself using the built-in model following the directions in 2.a of the README, which I got working successfully.

Now I am trying to use a custom acoustic model using the steps in 2.b.ii of the README โ€“ packaging the model files outside the main JavaScript since they are large. Under the root of pocketsphinx.js, I created a subdirectory named models. Then from root of pocketsphinx.js, I ran:

mkdir build
cd build
cmake -DEMSCRIPTEN=1 -DCMAKE_TOOLCHAIN_FILE=G:\Emscripten\emscripten\1.35.0\cmake\Modules\Platform\Emscripten.cmake -G "MinGW Makefiles" โ€“DHMM_EMBED=OFF ..
G:\MinGW\bin\mingw32-make.exe

These commands run and compile fine. I do get a few warnings that donโ€™t seem troubling to me but I include here just in case.

G:\repos\readingraces\pocketsphinx.js\src\psRecognizer.cpp:267:66: warning:
    unsequenced modification and access to โ€˜indexโ€™ [-Wunsequenced]
    strings_set->insert<list.substr<index+1, -1 โ€“index + <index = listโ€ฆ.
1 warning generated
WARNING:root:Dynamic libraries (.so, .dylib, .dll) are currently not supported by Emscripten. For build system emulation purposes, Emscripten will now generate a static library file (.bc) with the suffix .so. For best practices, please adapt your build system to directly generate a static LLVM bitcode library by setting the output suffix to .bc.)

For the model files, I have tried two different HUB4 sources. The first is the generic PocketSphinx version hosted on the CMU Sphinx site (http://www.speech.cs.cmu.edu/sphinx/models/). The second is the PocketSphinx.js version found here (https://github.com/syl22-00/pocketsphinx.js-en_US-hub4wsj_sc_8k/).

Generic PocketSphinx

For the generic version, I downloaded the 6000 senone version which is for use with 16kHz audio. I placed the files under a new directory pocketsphinx.js/model/hub4 and packaged the .js files using emscriptenโ€™s file_packager utility as follows:

From pocketsphinx.js/model/hub4:

python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\feat.params --js-output=feat.params.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\mdef --js-output=mdef.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\means --js-output=means.js 
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\mixture_weights --js-output=mixture_weights.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\noisedict --js-output=noisedict.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\subvq --js-output=subvq.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\transition_matrices --js-output=transition_matrices.js
python G:\Emscripten\emscripten\1.35.0\tools\file_packager.py ..\..\build\pocketsphinx.js --embed .\variances --js-output=variances.js

This model has a mixture_weights file and subvq file instead of a sendump file. The documentation says the models should include either sendump or mixture_weights, not both, so I assume this is fine, although I donโ€™t know the difference and am not sure what the subvq file is for. I copied the pocketsphinx.js file from the build directory to the webapp/js directory and changed the initRecognizer function in live.html to the following:

var initRecognizer = function() {
    postRecognizerJob(
{command: 'load', data: ["feat.params.js", "mdef.js", "means.js", "mixture_weights.js", "noisedict.js", "subvq.js", "transition_matrices.js", "variances.js"].map(function(x) {return "../model/hub4/" + x;} ) },
        function() { alert("Data is loaded"); }
);

postRecognizerJob(
        {command: 'initialize', data: [["-hmm", "hub4"]]},
           function() {
            if (recorder) recorder.consumers = [recognizer];
            feedWords(wordList);
}
    );
};

PocketSphinx.js

Using the PocketSphinx.js version, I packaged the .js files similar to above (this time with sendump and not mixture_weights or subvq).

Because the README for these files say they are for use with 8kHz audio, I changed audioRecorder.js to have outputSampleRate = 8000:

worker.postMessage({
        command: 'init',
        config: {
        sampleRate: this.context.sampleRate,
        outputBufferLength: outputBufferLength,
        outputSampleRate: 8000
        }
    });

I changed the initRecognizer function in live.html to the following:

var initRecognizer = function() {
postRecognizerJob(
{command: 'load', data: ["feat.params.js", "mdef.js", "means.js", "noisedict.js", "sendump.js", "transition_matrices.js", "variances.js"].map(function(x) {return "../model/hub4/" + x;} ) },
        function() { alert("Data is loaded"); }
);

    postRecognizerJob(
{command: 'initialize', data: [["-hmm", "hub4"]]},
        function() {
            if (recorder) recorder.consumers = [recognizer];
            feedWords(wordList);
}
    );
};

Errors
Regardless of which acoustic model version Iโ€™m using, I get the same errors.

Status
Loading page
Initializing web audio and speech recognizer, waiting for approval to access the microphone
Error in load with code NETWORK_ERROR
Audio recorder ready
Error in addWords with code [object Object]

Iโ€™ve seen some other discussions online where people were struggling with this problem, and the response was typically to remove the call to addWords and addGrammar. In these situations typically the person was trying to use their own dictionary and/or language model. In my situation, I want to use the same dictionary and language models from the the demo, just with a different underlying acoustic model. As I understand it, the acoustic model should be interchangeable and not affect the dictionary and language models, so Iโ€™m not sure why thereโ€™s an error with adding words or grammars.

Additionally, when I look at the console log, thereโ€™s an error being thrown from pocketsphinx.js that says:

"ERROR: "G:\repos\readingraces\pocketsphinx.js\pocketsphinx\src\libpocketsphinx\acmod.c", line 83: Folder 'hub4' does not contain acoustic model definition 'mdef'"

The hub4 model folder contains the mdef file, along with the rest of the files. Iโ€™m not sure whether the paths in live.html to load the files should be relative to live.html or recognizer.js, but I tried both ways with the same result.

Iโ€™ve also tried just opening the file locally and via a webserver (using WampServer) with the same results.

Listen to multiple keyphrases instead of just one

Using pocketsphinx I can listen to a keyphrase list, for example

keyphrase.list

oh mighty computer /1e-40/
hello world /1e-30/
other phrase /1e-20/
pocketsphinx_continuous -inmic yes -kws keyphrase.list

so my question is how do I achieve the same thing using pocketsphinx.js?

Pocketsphinx.js Compilation troubles

 hi,

I am trying to compile Pocketsphinx.js with a french accoustic model, language model and dictionary (the one from CMUSphinx Github repo).
The OS is Ubuntu 14.04 LTS 64bits in a Virtualbox VM, with 4Gb of RAM.

First I tried to package the am, lm and dict inside pocketsphinx.js with LM_BASE/FILES, DICT_BASE/FILES and HMM_BASE/FOLDERS. Lm being pretty big (around 250 Mb), I got MemoryError. Even by increasing TOTAL_MEMORY up to 3Gb, it failed with that MemoryError.

Then I tried to package the am only, and after hanging for quite a long time (say 30min), it failed with the following error:
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory.

My questions are:

  • is the compilation a long process, or should it be quick, like a few minutes?
  • is TOTAL_MEMORY the right setting to change memory allocation during compilation?

Additionally, the tutorial recommends to create and compile into a build/ subdirectory, but the compilation process complains that CMakeLists.txt and various dir are not present inside. So I have to compile into the pocketsphinx.js directory.

thanks,

Not able to recognize speech properly even after using custom AM and LM.

i have created custom pocketsphinx javascript file on my windows machine, as per the steps mentioned and customized Live demo page to check the accuracy of the Dictionary. Very strange result, it is not recognizing speech properly and getHyp is returning any word present in dictionary.
i have shared all the related documents @https://drive.google.com/folderview?id=0B0cJA2S9BX4MX0FldlZ1S3lxczQ&usp=sharing .
zip contains created pocketsphinx, AM,LM, Dictionary and customized Live demo page.
Can you please look into the issue and let me know what i am missing here.

Example with audio file

Hi

I've been playing around with pocketsphinx for the past two days and have not really been able to get it to work. I'm trying to strip it down to it's most basic form - reading an audio file and outputting the hypothesis to console - I like to work from basics first.

I keep getting errors of undefined modules and postmessage requiring two parameters and getHyp not being identified. Etc etc. Obviously I'm on the wrong track...

Can someone please be so kind as so post a very simple, but complete, example of the most basic use with an audiofile.

Thanks in advance

How to create Makefile for pocketsphinx.js in window os

I've been unable to create pocketsphinx.js file for about 3 weeks. Now I'm stucked in running the MAKE command in window. I've installed cygwin or even make.exe but still couldn't. All the steps goes well but just stuck in running the MAKE command. It keep saying "MAKEFILE not found and no targets specified"
Can you please share a complete step by step howto for window operating system, that will be really appreciative.

In my case I'm using window8.

Thanks in advance!.

Getting recognition scores for hypothesis

Hi!

I'm working on a a pronunciation training app and wanted to use pocketsphinx.js to calculate pronunciation scores. Using the example webapp I was able to integrate my custom Hindi Acoustic and language models with the recognition.

I wanted to know if there is any way for me to not only get the hypothesis of which word was spoken but the probability that the word recognized was the intended word? I was looking into forking this repo and adding that code in myself but didn't really know where to look to change that.

Thanks!

Getting Timestamps

When using the native C implementation of pocketsphinx, one can use the segment iterator ps_seg_t combined with calls to ps_seg_iter(), ps_seg_next(), and ps_seg_frames() to determine timestamps for each word in the hypothesis.

Can the above methods be exposed in pocketsphinx.js? Or is there another way that timestamps could be acquired for each word in the hypothesis?

-kws_threshold is an unknown argument / doesn't actually change the threshold?

If I set -kws_threshold to any value, I get the following console output:

ERROR: "cmd_ln.c", line 945: Unknown argument: -kws_threshold js/pocketsphinx.js:150
INFO: kws_search.c(291): KWS(beam: -1080, plp: -23, threshold -524288)

It feels like the threshold actually doesn't change, i.e. it's not just an output glitch.
If it isn't set, the threshold in the output is 0, and the keyword is never detected.

Of course, this might be an upstream bug, seeing how new kws is, but I can't natively test pocketsphinx at the moment :(

Is returned hyp data a evergrowing string?

forgive for my newbie question. I tried live_zh.html demo, this:
if (e.data.hasOwnProperty('hyp')) {
var newHyp = e.data.hyp;
...
be called about 1time/sec, and return a evergrowing hyp_string. Is there memory issue for longterm run(says hours or days)?
how do I get just recently recognized keyword.

Lookup API example

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

language model file location path?

Hi,

I have compiled the pocketsphinx.js with the am folder inside pocketsphinx.js/, after that i ran my js with pocketsphinx:

var PocketSphinx = require('./pocketsphinx.js/build/pocketsphinx.js');
var config = new PocketSphinx.Config();
config.push_back(["-fwdflat", "no"]);
var recognizer = new PocketSphinx.Recognizer(config);

And after the recognition,

var output = recognizer.start(); // Starts recognition on current language model
output = recognizer.process(buffer); // Processes the buffer
var hyp = recognizer.getHyp(); // Gets the current recognized string (hypothesis)
console.log(hyp);

Returns error
ERROR: "acmod.c", line 90: Folder 'am' does not contain acoustic model definition 'mdef'

Where should i place the definition files?

Thanks
Owen

Publish to NPM

Could you please publish these libraries to NPM? Having PocketSphinx.js and recognizer.js in NPM would make them easier to use and keep up to date.

Thanks!

Why in window OS there are lot of warnings and errors printed out while building Pocketsphinx

When I build Pocketsphinx in window os to create pocketsphinx.js file then there are lot of errors printed out on the screen but eventually the file has been created.
my question is, are these errors ignorable? and what are these errors related to?

Below is the complete log of the Build command

D:\Pocketsphinx\pocketsphinx.js\build>mingw32-make.exe
Scanning dependencies of target pocketsphinx
[ 1%] Building CXX object CMakeFiles/pocketsphinx.dir/src/psRecognizer.cpp.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 2%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/acmod.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 4%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/bin_mdef.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 5%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/blkarray_list.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 6%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/dict.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 8%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/dict2pid.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 9%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/fsg_history.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 11%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/fsg_lextree.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 12%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/fsg_search.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 13%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/hmm.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 15%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/mdef.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 16%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ms_gauden.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 18%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ms_mgau.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 19%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ms_senone.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 20%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ngram_search.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 22%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ngram_search_fwdtree.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 23%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ngram_search_fwdflat.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 25%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/phone_loop_search.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 26%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/pocketsphinx.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 27%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ps_lattice.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 29%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ps_mllr.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 30%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/ptm_mgau.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 31%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/s2_semi_mgau.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 33%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/tmat.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 34%] Building C object CMakeFiles/pocketsphinx.dir/pocketsphinx/src/libpocketsphinx/vector.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 36%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_interface.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 37%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 38%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_warp_affine.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 40%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_warp.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 41%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_warp_inverse_linear.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 43%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_warp_piecewise_linear.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 44%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fixlog.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 45%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/fe/fe_noise.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 47%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/feat/agc.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 48%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/feat/cmn.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 50%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/feat/cmn_prior.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 51%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/feat/feat.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 52%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/feat/lda.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 54%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/fsg_model.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 55%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/jsgf.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 56%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/jsgf_parser.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 58%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/jsgf_scanner.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 59%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/lm3g_model.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 61%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/ngram_model_arpa.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 62%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/ngram_model_dmp.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 63%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/ngram_model_set.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 65%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/lm/ngram_model.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 66%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/bio.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 68%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/bitvec.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 69%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/case.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 70%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/ckd_alloc.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 72%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/cmd_ln.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 73%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/dtoa.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 75%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/err.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 76%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/errno.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 77%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/f2c_lite.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 79%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/filename.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 80%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/genrand.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 81%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/glist.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 83%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/hash_table.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 84%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/heap.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 86%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/huff_code.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 87%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/info.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 88%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/listelem_alloc.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 90%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/logmath.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 91%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/matrix.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 93%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/mmio.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 94%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/pio.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 95%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/profile.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 97%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/sbthread.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[ 98%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/strfuncs.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
[100%] Building C object CMakeFiles/pocketsphinx.dir/sphinxbase/src/libsphinxbase/util/utf8.c.o
WARNING root: -I or -L of an absolute path "-ID:/Pocketsphinx/pocketsphinx.js/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/library, it may cause problems (local s
ystem files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
Linking CXX shared library libpocketsphinx.so
[100%] Built target pocketsphinx
Scanning dependencies of target pocketsphinx.js
warning: unresolved symbol: _embind_register_class_function
warning: unresolved symbol: _embind_register_class_constructor
warning: unresolved symbol: _embind_register_class
warning: unresolved symbol: _embind_register_value_object_field
warning: unresolved symbol: _embind_finalize_value_object
warning: unresolved symbol: _embind_register_value_object
warning: unresolved symbol: _emval_undefined
warning: unresolved symbol: _emval_take_value
warning: unresolved symbol: _emval_decref
warning: unresolved symbol: _emval_incref
warning: unresolved symbol: _embind_register_value_array_element
warning: unresolved symbol: _embind_finalize_value_array
warning: unresolved symbol: _embind_register_value_array
warning: unresolved symbol: _embind_register_enum_value
warning: unresolved symbol: _embind_register_enum
warning: unresolved symbol: kws_search_init
warning: unresolved symbol: _embind_register_void
warning: unresolved symbol: _embind_register_bool
warning: unresolved symbol: _embind_register_integer
warning: unresolved symbol: _embind_register_float
warning: unresolved symbol: _embind_register_std_string
warning: unresolved symbol: _embind_register_std_wstring
warning: unresolved symbol: _embind_register_emval
warning: unresolved symbol: _embind_register_memory_view
warning: Casting a function pointer type to a potentially incompatible one (use -s VERBOSE=1 to see more)
warning: See https://github.com/kripken/emscripten/wiki/CodeGuidelinesAndLimitations#function-pointer-issues for more information on dangerous function pointer casts
Traceback (most recent call last):
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\util.py", line 268, in _run_finalizers
finalizer()
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\util.py", line 201, in call
res = self._callback(_self._args, *_self._kwargs)
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\pool.py", line 500, in _terminate_pool
p.terminate()
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\process.py", line 137, in terminate
self._popen.terminate()
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\forking.py", line 312, in terminate
_subprocess.TerminateProcess(int(self._handle), TERMINATE)
WindowsError: [Error 5] Access is denied
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\atexit.py", line 24, in _run_exitfuncs
func(_targs, *_kargs)
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\util.py", line 315, in _exit_function
p._popen.terminate()
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\forking.py", line 312, in terminate
_subprocess.TerminateProcess(int(self._handle), TERMINATE)
WindowsError: [Error 5] Access is denied
Error in sys.exitfunc:
Traceback (most recent call last):
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\atexit.py", line 24, in _run_exitfuncs
func(_targs, *_kargs)
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\util.py", line 315, in _exit_function
p._popen.terminate()
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\multiprocessing\forking.py", line 312, in terminate
_subprocess.TerminateProcess(int(self._handle), TERMINATE)
WindowsError: [Error 5] Access is denied
[100%] Built target pocketsphinx.js

D:\Pocketsphinx\pocketsphinx.js\build>

Problem with microphone access

Hi:

First of all thanks for your amazing work, it's really great.

I'm new in speech recognition and I'm trying your javascript library. I've managed to use it with the spanish acoustic model and a grammar and a dictionary. However, I'm having problems with the microphone. This is because every time I launch an app (even with the examples), when I authorize the access to the microphone, the library starts to mess up with the mic boost, so it starts recognizing well but when the boost is auto-activated, noise is made and it produces lots of false positives until I manually get the boost down. But it auto get it on again, so I cannot make any application to work properly. This is happening to me in linux with pulse audio. I'm not sure whether this is the proper place to ask about this issue, but I've searched on internet and found no results, so I'd like to know if you've had this kind of issue and how did you solve it.

Thanks in advance

Phoneme extraction: -allphone in pocketsphinx.js?

Hi,

I am new to pocketsphinx.js, sphinx in general, and almost new to speech recognition. I need a phoneme extractor in (browser) JS and it seems pocketsphinx.js is the only real option (other than training a neural network from scratch :) ). I have seen that pocketsphinx has a special option for that, and requires to load a file. I have "just" two questions.

  1. Should I package more files other than the ones included in the live demos?
  2. It seems I don't need to use addWords, addGrammar or addKeyword. Will I get the list of phonemes just by calling getHyp() ?

Thanks in advance.

not able to generate pocketshinx.js with the default acoustic model on windows.

very much new for usling CLANG and CMake.
below is the cmd prompt view.

C:\Users\AVOD\syl22-00-pocketsphinx.js-f46eab9\build>cmake -DCMAKE_MAKE_PROGRAM:PATH=C:\mingw64\bin\mingw32-make.exe -DEMSCRITEN=1 -DCMAKE_TOOLCHAIN_FILE=C:\emscripten-master\cmake
\Platform\Emscripten.cmake -G "MinGW Makefiles" ..
HMM_BASE is C:/Users/AVOD/syl22-00-pocketsphinx.js-f46eab9/am
HMM_FOLDERS is rm1_200
Copying C:/Users/AVOD/syl22-00-pocketsphinx.js-f46eab9/am/rm1_200 to binary dir
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

EMSCRITEN

-- Build files have been written to: C:/Users/AVOD/syl22-00-pocketsphinx.js-f46eab9/build

C:\Users\AVOD\syl22-00-pocketsphinx.js-f46eab9\build>C:\mingw64\bin\mingw32-make.exe
Scanning dependencies of target pocketsphinx
[ 1%] Building CXX object CMakeFiles/pocketsphinx.dir/src/psRecognizer.cpp.o
WARNING root: (Emscripten: unknown: list index out of range, clearing cache)
WARNING root: Could not verify LLVM version: list index out of range
WARNING root: could not check fastcomp: need more than 1 value to unpack
INFO root: (Emscripten: Running sanity checks)
WARNING: sanity check failed to run list index out of range
WARNING root: -I or -L of an absolute path "-IC:/Users/AVOD/syl22-00-pocketsphinx.js-f46eab9/sphinxbase/src/libsphinxbase/fe" encountered. If this is to a local system header/libr
ary, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide
this warning.
WARNING root: disabling asm.js since embind is not ready for it yet
ERROR root: Compiler settings are incompatible with fastcomp. You can fall back to the older compiler core, although that is not recommended, see https://github.com/kripken/emsc
ripten/wiki/LLVM-Backend
Traceback (most recent call last):
File "C:\emscripten-master\emcc", line 1255, in
raise e
AssertionError: embind not supported in fastcomp yet
CMakeFiles\pocketsphinx.dir\build.make:57: recipe for target CMakeFiles/pocketsphinx.dir/src/psRecognizer.cpp.o' failed mingw32-make[2]: *** [CMakeFiles/pocketsphinx.dir/src/psRecognizer.cpp.o] Error 1 CMakeFiles\Makefile2:62: recipe for targetCMakeFiles/pocketsphinx.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/pocketsphinx.dir/all] Error 2
makefile:74: recipe for target `all' failed
mingw32-make: *** [all] Error 2

please let me know why I am getting this error.

Pipe data from sox

Trying to find some documentation on this, but im not sure if its possible.

Can I pipe data from sox into the recognizer? I'm trying but i keep getting errors like "Cannot convert (bunch of random chars, looks like the buffer)"

pocketsphinx.js + MULTIPLE keywords?

I have two questions:

  1. With pocketsphinx.js, can we simultaneously listen for multiple keywords instead of just one? I've looked at the live_kws.html sample, which allows one, but I've been unable to successfully write code that listens (and responds) to multiple keywords. Is there a way to supply an array of keywords or something? Anyone who can answer this (with code) will absolutely make my day! :-)
  2. If I want to listen for a key phrase that has two words, such as "play scene", what do I need to add to my word list?

For example, which is correct? (more efficient)

  1. var wordlist = [["PLAY","P L EY"],["SCENE","S IY N"]]
  2. var wordList = [["PLAY","P L EY"],["SCENE","S IY N"],["PLAY-SCENE","P L EY S IY N"]]
  3. var wordList = [["PLAY-SCENE","P L EY S IY N"]]

Error from recorder: silent Spam

About 90% of the time, the recorder is spamming "Error from recorder: silent" when I try to use it. I am running Windows 7 with both Firefox 27.01 and Chrome 33.0.1750.117 m. I have tried running the sample you have hosted as well as downloading and running it locally. I am using Logitech's G930 for recording and have verified that it is operating normally.

Is this message spam normal operation? If I can record the audio through a different web app, would it be difficult to pass the audio to pocketsphinx.js and bypass the current recorder?

Where is webapp.js?

Trying to simply copy the webapp directory of the download to a WebStorm project, start up a connect web server, and run the project. The index.html file in the root of the webapp directory has the following script reference at the bottom:
<script src="js/webapp.js"></script>

This file does not exist in the downloaded .zip file, where are we supposed to get that? Without knowing what's supposed to be in there, it's tough to know how to proceed to evaluate the JS capabilities of PS.

Thanks

Can this work on Cordova with real time keyword spotting?

Do you know if it's possible using Cordova plugins to capture the audio and pass it into the recognizer? Has anyone done this successfully and do you have any pointers?

It seems this could be done by capturing to a file but would that be too slow for real time keyword spotting?

make pocketsphinx.js core CommonJS compatible

Even though JavaScript in Browsers and node.js have an asynchronous, event-driven architecture, sometimes it may be useful to include the core pocketsphinx.js file directly in node or a browser. Using node, there is currently no way (eval doesn't count) to use the library.

I once wrote a small wrapper for libraries supposed to be used in both browser and node.js environments. Have a look!

Because I'm not familiar with emscripten, I don't know if there's a way to automatically pre- and append code, but that would be nice! Maybe a build system like Grunt would be good here.

If there is no option in emscripten, I could also setup a small build script.

mandarin_notone.dic

I am fiddling with Mandarin recognition, and in the webapp sample I found a reference to
"model/lm/zh_CN/mandarin_notone.dic".

I have been searching for this file on the CMU Sphinx repository and elsewhere but I can't seem to find it anywhere.

Two questions:

  • could anyone point me to where I could download that from?
  • given the "notone" part of the filename, I assume a "mandain_tone.dic" exists as well?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.