Menu

Attempting to run Speech recognition on Raspberry pi 2, Got error "ERROR: fe_interface.c, line 274: upper frequency 6800.0 is higher than samprate/2 (800.0)"

Help
2016-04-27
2016-04-27
  • shivam kumar

    shivam kumar - 2016-04-27

    Hello all,

    I am new to Speech Recognition, I tried installing sphinxbase and pocketsphinx and complied them successfully.
    But when I run the final command to test it, it throws an error that ERROR: fe_interface.c, line 274: upper frequency 6800.0 is higher than samprate/2 (800.0)

    I tried the solution mention https://sourceforge.net/p/cmusphinx/discussion/help/thread/d0b75efa/ which says to install 8khz model but that also didn't worked.
    I downloaded "cmusphinx-en-us-ptm-8khz-5.2" but this didn't worked or may be I am missing some steps can some one please help me with this?

    For Speech Recognistion I used https://wolfpaulus.com/journal/embedded/raspberrypi2-sr/ post

    Can Anyone guide me on this?
    If some one can provide some details on this or some post or links it would be helpful.

    Thanks
    Shivam

     
    • Nickolay V. Shmyrev

      But when I run the final command to test it

      Which command did you run exactly

      I downloaded "cmusphinx-en-us-ptm-8khz-5.2" but this didn't worked

      What "didn't worked" exactly

       
      • Nickolay V. Shmyrev

        Also, from your message it is clear you missed one zero in samprate argument, it must be

        -samprate 16000

        You accidentally used 1600. Let me repeat 16 thousand, three zeroes. You should not download 8khz model, default model will work fine if you fix your typo.

         
  • shivam kumar

    shivam kumar - 2016-04-27

    Hi,
    That was so silly of me, that typing mistake I missed one zero.
    I was using
    pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/en-us/en-us -lm 3199.lm -dict 3199.dic -samprate 16000/8000/48000 -inmic yes
    this command.

    One more thing I wanted to ask you, can you recoomend me some guide or reference for home automation projects using speech recognisition.

    Thanks
    Shivam

     
    • Nickolay V. Shmyrev

      I am not sure what do kind of recommendation do you need. There are dozen home automation projects around: jasper, mycroft, etc. It is better to ask for more specific things.

       

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.