ashishbajaj99 / mic

A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
MIT License
103 stars 61 forks source link

exitOnSilence doesn't work when Audio Gain is set to other than 1 #26

Open raghavSrih opened 6 years ago

raghavSrih commented 6 years ago

Hi,

I am using your module with Matrix Voice mic array. When I set audio gain to 1 'exitOnSilence' works fine. However, when I set the Audio Gain of the Mic Array to for example 10, 'exitOnSilence' doesn't work anymore.

Best Regards, Raghav

ashishbajaj99 commented 6 years ago

The silence detection algorithm in this library is extremely rudimentary. Some fancier techniques based on other signal processing techniques could be deployed to improve the silence detection. Would you want to try working on it and enhancing this library? I would be happy to receive any pull requests from you on this.