Menu

Assertion failed

Help
Rendy Guo
2012-04-09
2012-09-22
  • Rendy Guo

    Rendy Guo - 2012-04-09

    Sorry to disturb everyone.

    I have run the sample application in CMUSphinx website, but got the following
    error message...
    hello_ps: feat.c:362: feat_array_alloc: Assertion `nfr > 0' failed.
    Aborted

    Please help me this error message

    Thanks.

     
  • Nickolay V. Shmyrev

    You are trying to recognize an empty or missing file

     
  • Rendy Guo

    Rendy Guo - 2012-04-10

    Sorry to disturb again.
    I have found that the input file format is as follow
    format: PCM
    Attributes: 16-bit, mono, signed
    Rate: 16000 Hz

    And try to convert wav file to PCM file.
    If I was trying to recognize an empty or missing file, that is I converted
    file failed ?!
    Is there any sample file can let me try ?!

    Thanks.

     
  • eliasmajic

    eliasmajic - 2012-04-10

    Open the file in any player and see if it plays, or use audacity.

    You don't need to convert wav to pcm.But wav is essentially pcm, it just has
    those 44 fun bytes at the start. In conclusion, I do not understand your
    question :)

     
  • Rendy Guo

    Rendy Guo - 2012-04-10

    Sorry to disturb again.

    Actually I have used some wav files as input, but the result is the
    same.(Assertion `nfr > 0' failed. )
    I tried to convert wav to pcm, however the result is the same.
    But I am sure the wav files can be played

    I do not know where is my wrong.

    Thanks.

     

Log in to post a comment.