Menu

recognition error with pocketspinx_continuous

Help
2010-09-16
2012-09-22
  • Luheng Wang

    Luheng Wang - 2010-09-16

    I am a beginner of CMUSphinx. I don't know how to make pocketsphinx_continuous
    shut up when I am saying words other than my voice commands.

    testing steps:
    1) follow the instruction from http://cmusphinx.sourceforge.net/wiki/tutorial
    lm
    to create a corpus.txt
    which contains only 5 words "next previous play pause exit".
    2) Using online web tool http://www.speech.cs.cmu.edu/tools/lmtool.html to get 2 files: xxxx.ml and
    xxxx.dic.
    3) run pocketsphinx_continuous -hmm hub4wsj_sc_8k -lm 5631.lm -dict 5631.dic

    phenomenon:
    1) If I utter the commands which are defined in corpus.txt, sphinx print just
    what I said.
    2) If I say something else like "search", sphinx print "next". This isn't what
    I expected. I want pocketsphinx_continuous shut up at this moment.

    What should I do? May I achieve it by adding some option in the command line?

    Thanks in advance

     
  • Nickolay V. Shmyrev

    Hello.

    I suppose you don't want to "shut up" them, you want to ignore the words which
    aren't in grammar. That's a common problem usually referred as out-of-grammar
    detection. First of all please take into account that pocketsphinx continuous
    is more a demonstration application. It doesn't have all necessary things
    done. We are working to make it better fit to applications. So you need to
    modify the code in order to get the required behaviour. There are several
    approaches which let you deal with OOG words:

    1. Try to include as much as you can guess into the language model. Once garbage word is recognized reject it. Actually your grammar should be as rich as possible. Include "search" into grammar

    2. Once the probable outcome is diverse, try to use confidence score to reject the words recognizer isn't confident in. You can get confidence score with ps_get_prob API function.

     
  • Luheng Wang

    Luheng Wang - 2010-09-17

    Thank you! nshmyrev!

    I will try each of the approach you provided.

     
  • cornelyus

    cornelyus - 2010-11-22

    hey wangluheng..

    you any any luck with your task?

     

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.