I'm trying to set the threshold level so that background noise will not be
recognized. I have found two different functions which both can set the
thresholds, but I do not know which one to use and what is different between
the two. Here are the two functions which I've found and tried to use:
You need to use cont_ad_set_thresh(cont, sil, sp). AGC is not used by default
and it's related to feature extraction, not to the VAD. You can find more
details on functions and modules in API reference.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to set the threshold level so that background noise will not be
recognized. I have found two different functions which both can set the
thresholds, but I do not know which one to use and what is different between
the two. Here are the two functions which I've found and tried to use:
agc_set_threshold(agc);
cont_ad_set_thresh(cont, sil, sp);
Could you please help me?
Thank you very much
Teddy
I forgot to mention that I am using the following:
pocketsphinx-0.7
sphinx base-0.7
mac OSX 10.7.3
xCode 4.1
You need to use cont_ad_set_thresh(cont, sil, sp). AGC is not used by default
and it's related to feature extraction, not to the VAD. You can find more
details on functions and modules in API reference.
Thank you nshmyrev! I understand now.