rhasspy / rhasspy-silence

Silence detection in audio stream using webrtcvad
MIT License
46 stars 15 forks source link

Trouble with multiple methods #2

Open almostserious opened 3 years ago

almostserious commented 3 years ago

Hi, if i understand the documentation correctly, using multiple methods of detection like vad_and_current or all should actually be less sensitive to noise since more than one condition needs to be true.

However, in my testing i observe the opposite.

When I define the following: arecord -D plughw:CARD=seeed4micvoicec -r 16000 -f S16_LE -c 1 -t raw | bin/rhasspy-silence --silence-method all --sensitivity 3 --current-threshold 1500 --max-current-ratio-threshold 1.8

Each single method alone, gives a good detection output. I tried to dial it in while playing music in the background. This works pretty well for current and ratio.

However, once I am using more than 2 options at the same time, I basically get constant Sound Detection.
Is this how it should be?

synesthesiam commented 3 years ago

It's not supposed to be this way. Let me take a look. Thanks!