getShortTermLoudnessAtSamplePosition from liveinput (getUserMedia)
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!!!!
Yes, I'm actually working right now on this feature. Stay tuned.
Great to hear :-) THX
Any news about this feature right now?
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
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 .
Fount that sice june 2nd two new microphone constraints got standardized, available now with adapter.js or (Firefox Nightly):
{ autoGainControl: true, noiseSuppression: false }