Menu

A bug with jsgf option in pocketsphinx

Help
2010-07-12
2012-09-22
  • Samuel Kitono

    Samuel Kitono - 2010-07-12

    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): 0 frames, 0 HMMs (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): 223 frames, 7003 HMMs (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?

     
  • Samuel Kitono

    Samuel Kitono - 2010-07-12

    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....

     
  • Nickolay V. Shmyrev

    Dear arckit, NULL is a valid result from ps_get_hyp, see the documentation:

    /** 
     * Get hypothesis string and path score. 
     * 
     * @param ps Decoder. 
     * @param out_best_score Output: path score corresponding to returned string. 
     * @param out_uttid Output: utterance ID for this utterance. 
     * @return String containing best hypothesis at this point in 
     *         decoding.  NULL if no hypothesis is available. 
     */
    POCKETSPHINX_EXPORT
    char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score,
                           char const **out_uttid);
    

    It's the issue in your program that it crashes on NULL result. I suppose you
    can easily fix this crash.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.