Mic detection?

Okay, so, this may or may not be possible.

I am currently in the mood to make an experimental MV horror game and one of the ideas I have for it is the player's microphone, if they choose to, can detect their voice and project it from the in-game character. The louder it is, the larger the radius.

So, as an example, let's say you enter into a room and hear a monster. You let out a panicked yelp at the sound and then the monster starts marching towards you because he heard you.

If it isn't possible, then oh well. If you need any clarification, I will happily provide.

Thanks in advance to any effort put forward. ^^
In theory, it should be possible by using one of these methods:


https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia


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


They aren't supported in all browser, but in Chrome, so if you only plan to do a normal offline game, it should work.


I have never tried this, though, so that's only speculation.
In theory, it should be possible by using one of these methods:

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia

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

They aren't supported in all browser, but in Chrome, so if you only plan to do a normal offline game, it should work.

I have never tried this, though, so that's only speculation.
I've never dabbled in Javascript before, so I'm a little lost on some of the terminology and stuff.
I'm not sure how would a Java script would work.
I'm doing something similar to OP except I'm on VXA instead of MV

Never mind, My mistake, I was unaware that MV runs on Java, I thought all rpg makers run on the same script.

Original thread: https://forums.rpgmakerweb.com/threads/mic-detection.48248/