Speech Recognition Engines

Nested
Running pocketsphinx from java
User: jcwang
Date: 2/16/2009 12:53 pm
Views: 8856
Rating: 8

Hi,

 

This may be a bit off topic. However, if anyone had tried this, I'd really appreciate if someone can shed some light.

 

I wrote a simple java code to invoke an executable running pocketsphinx. However, the code seems to be stuck at ps_init (at s2_semi_mgau_init to be precise). If I commented out the function acmod_init_am, then the pocketsphinx program would execute to completion. 

 

Has anyone tried this before? I have uploaded the files to:

http://www.mediafire.com/?sharekey=622d284a325357dbd1014a7a667fa2b4e04e75f6e8ebb871

 

BTW, the pocketsphinx executable runs fine if invoked under linux command prompt. The pocketsphinx version I used is pocketsphinx-0.5.1.

 

Thank you very much for your help!

 

regards,

Jimmy

 

 

--- (Edited on 2/16/2009 12:53 pm [GMT-0600] by jcwang) ---

Re: Running pocketsphinx from java
User: nsh
Date: 2/18/2009 2:27 am
Views: 94
Rating: 9

Well, your app works fine for me. Probably you need to read stderr as well, not just stdout. Otherwise the app gets blocked.

It's usually helpful to use strace to find out where the program locks.

--- (Edited on 2/18/2009 2:27 am [GMT-0600] by nsh) ---

Re: Running pocketsphinx from java
User: jcwang
Date: 2/18/2009 3:42 am
Views: 107
Rating: 7

Hi Nsh,

 

Thanks again for your help! I modified the java program to read stderr as well, unfortunately, it still doesn't work for me. Then, I went ahead and modified sphinxbase to disable all info/error/warning macros. Without the massive outputs, the java app runs fine!

 

BTW, do you know if there is anyway to disable the logging either at runtime or at compile time?

 

Thanks!

Jimmy

--- (Edited on 2/18/2009 3:42 am [GMT-0600] by jcwang) ---

Re: Running pocketsphinx from java
User: nsh
Date: 2/18/2009 3:41 pm
Views: 100
Rating: 10

I'd better suggest you to use pocketsphinx in a server mode. Something like

http://scribblej.com/svn

In theory it would be nice to implement full MRCP server specs.

--- (Edited on 2/18/2009 3:41 pm [GMT-0600] by nsh) ---

Re: Running pocketsphinx from java
User: jcwang
Date: 2/18/2009 8:35 pm
Views: 307
Rating: 8

Hi Nsh,

 

Thanks for the info and help!

 

regards,

Jimmy

--- (Edited on 2/18/2009 8:35 pm [GMT-0600] by jcwang) ---

Re: Running pocketsphinx from java
User: Aris
Date: 6/3/2010 4:39 am
Views: 84
Rating: 8
Can you please send to me the modified code? I'm trying also to run pocketsphinx in java? However, my real target is to integrate pocketsphinx with a j2me application for mobile. My email is [email protected] thank you very much

--- (Edited on 6/3/2010 4:39 am [GMT-0500] by Visitor) ---

Re: Running pocketsphinx from java
User: Aris
Date: 6/3/2010 4:39 am
Views: 112
Rating: 10
Can you please send to me the modified code? I'm trying also to run pocketsphinx in java? However, my real target is to integrate pocketsphinx with a j2me application for mobile. My email is [email protected] thank you very much

--- (Edited on 6/3/2010 4:39 am [GMT-0500] by Visitor) ---

Re: Running pocketsphinx from java
User: Aris
Date: 6/3/2010 4:40 am
Views: 93
Rating: 9
Can you please send to me the modified code? I'm trying also to run pocketsphinx in java? However, my real target is to integrate pocketsphinx with a j2me application for mobile. My email is [email protected] thank you very much

--- (Edited on 6/3/2010 4:40 am [GMT-0500] by Visitor) ---

Re: Running pocketsphinx from java
User: Aris
Date: 6/3/2010 4:40 am
Views: 206
Rating: 10
Can you please send to me the modified code? I'm trying also to run pocketsphinx in java? However, my real target is to integrate pocketsphinx with a j2me application for mobile. My email is [email protected] thank you very much

--- (Edited on 6/3/2010 4:40 am [GMT-0500] by Visitor) ---

Re: Running pocketsphinx from java
User: aris
Date: 6/24/2010 8:39 am
Views: 2126
Rating: 11

where is the link in mediafire? can you please reupload it?

thank you very much

--- (Edited on 6/24/2010 8:39 am [GMT-0500] by Visitor) ---

PreviousNext