Menu

Ignore low volume audio in Pocketsphinx

Help
kleone
2018-07-11
2018-07-17
  • kleone

    kleone - 2018-07-11

    Hi,

    I am trying to recognize keywords but having a problem that pocketsphinx tries to recognize very slight noises and speeches.
    I wonder, is there a way to set a minimum input volume threshold? Just so pocketsphinx ignores low volume sounds.

     

    Last edit: kleone 2018-07-11
    • Nickolay V. Shmyrev

      -vad_treshold option

       
      • kleone

        kleone - 2018-07-12

        I thought "-vad_treshold" is "Threshold for decision between noise and silence frames. Log-ratio between signal level and noise level." As I understood this option value is relative (ratio between signal level and noise level). So if total signal level is low "-vad_treshold" uses the higher volume as signal level. Did I get it right?

        Also, I've made the test. I've create 10min 16000 16bit test audio file which sound level isn't higher than -20db and used follow command:

        pocketsphinx_continuous.exe  -hmm ../en-us-adapt/ -infile ../noise_10m_20db.wav -dict ../cmudict-en-us.dict -keyphrase "apple" -logfn your_file.log -kws_threshold 1e-10 -vad_threshold 1
        

        I tried to set different "-vad_threshold" (1e-10, 0.1, 1, 2, 3, 4, 5), but I always get false positive result despite sound level is really low (-20db)

        (P.S. What I need now is ignore all sounds which is lower than -20db)

         

        Last edit: kleone 2018-07-12
        • Nickolay V. Shmyrev

          You'd better share the audio file to get help on this issue. False positives are caused by very short keyword, not by background sounds.

           
          • kleone

            kleone - 2018-07-17

            Nickolay, thanx for answer. I've added test files to the attach.

            You'd better share the audio file to get help on this issue. False positives are caused by very short keyword, not by background sounds.

            Yes I understand this, but what I need is to disable recognition if sound level are lower than -20db so pocketsphinx hasn't any chance to recognize quiet sounds

             

            Last edit: kleone 2018-07-17
  • kleone

    kleone - 2018-07-17
     

    Last edit: kleone 2018-07-17

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.