I have found a bug with the jsgf option.... Apparently the bug causes the
whole program to crash when I do not say anything. However if I stay silent
for more than 2 seconds it doesnt crash. Staying less than 2 secs will cause
the engine to crash.
The log of my program is as follows before it crashes
INFO:fsg_search.c(1015):0frames,0HMMs(0/fr), 0 senones (0/fr), 10 history entries (0/fr)
and this is the log if i stay silent long enough
INFO:fsg_search.c(1015):223frames,7003HMMs(31/fr), 13577 senones (60/fr), 6317 history entries (28/fr)
so i reckon the number of frames must have something to do with the bug... Any
solution possible currently?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On one more note... it seem my program crashes because pocketsphinx seems to
pass me a null pointer from ps_get_hyp_string if it stays silent too long....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have found a bug with the jsgf option.... Apparently the bug causes the
whole program to crash when I do not say anything. However if I stay silent
for more than 2 seconds it doesnt crash. Staying less than 2 secs will cause
the engine to crash.
The log of my program is as follows before it crashes
and this is the log if i stay silent long enough
so i reckon the number of frames must have something to do with the bug... Any
solution possible currently?
On one more note... it seem my program crashes because pocketsphinx seems to
pass me a null pointer from ps_get_hyp_string if it stays silent too long....
Dear arckit, NULL is a valid result from ps_get_hyp, see the documentation:
It's the issue in your program that it crashes on NULL result. I suppose you
can easily fix this crash.