Hi,
I managed to build and run PocketSphinx Android demo project. Now I want it to
use a simple grammar, which I wrote.
What do I have to chnage in my project?
When I tried to convert my .gram file to .fsg using sphinx__jsgf2fsg I got a
following output in terminal:
When I tried to convert my .gram file to .fsg using sphinx__jsgf2fsg I got a
following output in terminal:
There is no need to convert to FSG, you can use JSGF grammar directly. In
order to solve specific conversion issue you need to use a proper command line
arguments to invoke the tool. Since you didn't provide the exact command line
you were using it's hard to say what was wrong there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I put my_grammar.jsgf file in /sdcard/Android/data/edu.cmu.pocketsphinx
folder. I also changed the decoder initialization call but the app crashed (
closed with no message ). Following messages were in log file:
signallingSTARTsignalledSTARTgotSTARTSTART
All of them are from RecognizerTask class.
Whiule debugging the application I found that the problem appers in line
this.ps.startUtt();
It is run function from RecognizerTask class
What could be the problem?
Since you didn't provide the exact command line you were using it's hard to
say what was wrong there.
I used the following command in Cygwin:
sphinx_jsgf2fsg input.jsgf output.fsg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sure I updated everything properly. In Android LogCat I get fatal signal
11 SIGSEGV which occurs in Android Native libraries.. usually when an unknown
memory area is tried to access by the android internal storage system.
Could it be a problem in startUtt method?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In Android LogCat I get fatal signal 11 SIGSEGV which occurs in Android
Native libraries
The crash is often caused by earlier errors which are reported in
pocketsphinx.log file. You need to provide the full contents of that file
which you see on your filesystem. That will help you to solve the problem
faster. Sorry, I do not have remove access to your phone in order to check
that file for you.
Could it be a problem in startUtt method?
No
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I managed to build and run PocketSphinx Android demo project. Now I want it to
use a simple grammar, which I wrote.
What do I have to chnage in my project?
When I tried to convert my .gram file to .fsg using sphinx__jsgf2fsg I got a
following output in terminal:
Is there another way to convert .gram to .fsg files?
Put the JSGF grammar on the file system. Change decoder initialization call
from:
to
There is no need to convert to FSG, you can use JSGF grammar directly. In
order to solve specific conversion issue you need to use a proper command line
arguments to invoke the tool. Since you didn't provide the exact command line
you were using it's hard to say what was wrong there.
Hi,
I put my_grammar.jsgf file in /sdcard/Android/data/edu.cmu.pocketsphinx
folder. I also changed the decoder initialization call but the app crashed (
closed with no message ). Following messages were in log file:
All of them are from RecognizerTask class.
Whiule debugging the application I found that the problem appers in line
It is run function from RecognizerTask class
What could be the problem?
I used the following command in Cygwin:
This is not the right log. The log is created in the file named
on the device filesystem
You can check it for details
Thanks. It should work now, it doesn't seem like you are using the latest
sphinxbase version.
That was console output :)
I've looked the pocketsphinx.log file and this part was inteersting
Does this mean that decoder is still trying to use statistical language model
instead of a grammar?
Yes, it seems you didn't update the decoder initialization cal properly as
described above.
I'm sure I updated everything properly. In Android LogCat I get fatal signal
11 SIGSEGV which occurs in Android Native libraries.. usually when an unknown
memory area is tried to access by the android internal storage system.
Could it be a problem in startUtt method?
I'm not
The crash is often caused by earlier errors which are reported in
pocketsphinx.log file. You need to provide the full contents of that file
which you see on your filesystem. That will help you to solve the problem
faster. Sorry, I do not have remove access to your phone in order to check
that file for you.
No
Here is content of my pocketsphinx.log file