LoudEv icon indicating copy to clipboard operation
LoudEv copied to clipboard

getShortTermLoudnessAtSamplePosition from liveinput (getUserMedia)

Open infantilo opened this issue 8 years ago • 6 comments

It would be pretty useful to be able to measure loudness on liveinputs. But haven't found an solution right no as the scriptingnode offers too little buffersize. Ony other solution for that would be great!!!!

infantilo avatar Mar 21 '17 18:03 infantilo

Yes, I'm actually working right now on this feature. Stay tuned.

polyrainbow avatar Mar 23 '17 15:03 polyrainbow

Great to hear :-) THX

infantilo avatar Mar 23 '17 15:03 infantilo

Any news about this feature right now?

infantilo avatar May 04 '17 18:05 infantilo

The problem is, that the internal mechanisms of MediaDevices.getUserMedia() [1] seem to normalize the live input signal, which prevents a proper loudness measurement. So far, I have no idea on how to solve this. Related SO topic: [2]

[1] https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

[2] https://stackoverflow.com/questions/26075224/level-normalization-of-microphone-input

polyrainbow avatar Jul 20 '17 11:07 polyrainbow

Had the same problem on some android devices, where the mic input was only available normalized. During my work on a RTC voip solution for my sport commentators, the pc's audio input was not leveled/normalized at all. I'm coding this for chrome only. Do you have an "working" exmple for the live input right now to try?

2017-07-20 13:07 GMT+02:00 Sebastian Zimmer [email protected]:

The problem is, that the internal mechanisms of MediaDevices.getUserMedia() [1] seem to normalize the live input signal, which prevents a proper loudness measurement. So far, I have no idea on how to solve this.

[1] https://developer.mozilla.org/en-US/docs/Web/API/ MediaDevices/getUserMedia

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SebastianZimmer/LoudEv/issues/1#issuecomment-316671504, or mute the thread https://github.com/notifications/unsubscribe-auth/ASg9v7cLbVI6M8IcrTjtnmCIcmJrTBOfks5sPzUAgaJpZM4MkNI6 .

infantilo avatar Jul 21 '17 19:07 infantilo

Fount that sice june 2nd two new microphone constraints got standardized, available now with adapter.js or (Firefox Nightly):

{ autoGainControl: true, noiseSuppression: false }

infantilo avatar Nov 18 '17 14:11 infantilo