Menu

Assert from acmod.c in pocketsphinx

Help
2013-04-04
2013-04-05
  • Harri Pasanen

    Harri Pasanen - 2013-04-04

    I'm playing with pocketsphinx with continuous recording and silence detection.
    Occasionally it trips to E_FATAL in
    pocketsphinx-0.8/src/libpocketsphinx/acmod.c

    "Decoder can not process more than 32767 frames at once, requested 51200"
    The requested number is typically around 50000.

    I wonder if I'm missing a call to clear something occasionally, or what is wrong?

     
  • Nickolay V. Shmyrev

    By default pocketsphinx is configured to process only approximately 5min of audio per utterance. You need to make sure your voice activity detection doesn't produce longer utterances. In VAD code you need to end utterance before 5 mins expire.

    Otherwise, you can reconfigure pocketsphinx to decode longer utterances. You can do it in hmm.h by fixing the following variables:

    typedef int16 frame_idx_t;
    #define MAX_N_FRAMES MAX_INT16
    

    to

    typedef int32 frame_idx_t;
    #define MAX_N_FRAMES MAX_INT32
    
     

    Last edit: Nickolay V. Shmyrev 2013-04-05

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.