How to pick up the microphone level using Javascript

Asked

Viewed 24 times

0

What I would like is a way to get the level of the microphone I define in Windows. inserir a descrição da imagem aqui

I use this code to catch the stream

navigator.mediaDevices.getUserMedia()
.then(function(stream) {
  console.log(stream)
})

But from that stream object I need that level, or something that points to me that the microphone is not at 100% capacity.

  • This is not possible heimm ... via JS there is no way to get this OS Info, what you can try to do is check the dB as someone talks in Mic and assume that it is too high ...

  • And how would I assume that ? what would be the parameter to know this ?

  • based on an adaptive Threshold, making a few seconds pre-analysis on the Mic and defining whether dB is above what you consider high ....

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.