cwilso / PitchDetect

Pitch detection in Web Audio using autocorrelation
https://cwilso.github.io/PitchDetect/
MIT License
1.31k stars 440 forks source link

Adjusting the microphone input level #14

Closed sonnyk22 closed 8 years ago

sonnyk22 commented 8 years ago

It seems that Firefox is somehow able to automatically control the microphone input volume level on my computer, and in the real-time it adjusts the mic level to either low & high, depending on my how loud I speak on the mic.

calc2

I used your link to test for this feature: https://webaudiodemos.appspot.com/pitchdetect/index.html

How can I achieve the same on the Chrome? Is there a special Chrome setup for this? Or, is there a Chrome plugin for this, or even a 3rd-party plugin? Also, is it possible to accomplish this using any of the your audio libraries after the end-user has granted the browser access to the microphone?

cwilso commented 8 years ago

Answered on Stack Overflow. You need to remove these lines of code: https://github.com/cwilso/PitchDetect/blob/master/js/pitchdetect.js#L162-L167. Mozilla might support those params without the "goog", I'm not sure.

sonnyk22 commented 8 years ago

Thank you