Microphone detection for horror/stealth game

Swafer

Gremlin | Uses VXA and MV
Veteran
Joined
Jul 25, 2018
Messages
46
Reaction score
5
First Language
English
Primarily Uses
Other
I was trying to find a microphone detection plugin where, whenever a player makes a sound, it could alert enemies nearby to the player.
Gives a sense of realism.

There was a thread that had something similar but the post was old, and the answer that was provided was speculation. where I need strong proof it can work. I looked at the script suggested and it seemed that it's more directed to internet browsers than actual programs.

If there isn't a script, that's fine. let me know if you need me to be specific.

Edit: The post that I was referencing that is nearly 5 years old.

Edit 2:
For those who went to the post linked.
Yes, I did make a reply mentioning that I used VXA.
I use both VXA and MV (the latter more recently) but I moved my game from VXA to MV because I felt like I can do more of what I want on MV than VXA. Not saying that MV is better than VXA.
 
Last edited:

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
1,898
Reaction score
623
First Language
Dutch
Primarily Uses
RMMV
so far I know, microphone detection is really hard to do, specially for different sounds detection
like blow, yell, etc like in zelda game "Phnatom Hourglass" to activate things.

so if its possible, maybe, but probably not good enough on those engines if you ask me.
unless there is a really good coder that can make it possible.
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
394
Reaction score
214
First Language
English
Primarily Uses
RMMV
I notice you responded on the other thread mentioning that you were using VXA. Are you now using MV or are you still using VXA?
 

Swafer

Gremlin | Uses VXA and MV
Veteran
Joined
Jul 25, 2018
Messages
46
Reaction score
5
First Language
English
Primarily Uses
Other
I notice you responded on the other thread mentioning that you were using VXA. Are you now using MV or are you still using VXA?
I use both VXA and MV but I'm moving my game from VXA to MV.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,657
Reaction score
1,110
First Language
EN
Primarily Uses
RMMV
RMMV games are basically HTML + JavaScript pages. All deployment options (other than Web, a.k.a. "pure HTML") package the game's HTML along with a small Chromium browser: the browser is the application. Iavra's suggestion from the thread you linked, i.e. MediaDevices.getUserMedia(), looks valid! :)

You want something like "check if volume is over this threshold", right? I feel like this mechanic could easily go wrong, either intentionally (e.g. player mutes mic) or due to background noise (frustrating!). Maybe you've already considered this kind of stuff, just thought I'd mention it. :kaoslp:

I did find this old plugin; the code looks promising but I haven't tested to make sure it works: https://forums.rpgmakerweb.com/index.php?threads/noisemater-sazanami.67052/
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
394
Reaction score
214
First Language
English
Primarily Uses
RMMV
Like @caethyril has already said MV effectively always runs in a browser so the solution should work much the same. The only difference I've seen with the testing I've just done (using MediaDevices.getUserMedia) is that in a browser there will be a small pop up asking for permission to access the microphone, whereas when launched as a program the request is automatically accepted.

Having tested I do have a small code snippet that is capable of reading the mic's volume level (nothing more at this stage), but I would suggest trying the plugin linked above as it appears much more fleshed out, with the ability to set $gameVariables to the volume level so I'd imagine you'll have an easier time eventing with it.

If the other plugin doesn't work for whatever reason let me know and I can either provide my test code for you to expand on or I can add to it so it's in a usable form for you.
 

Gefest

Warper
Member
Joined
May 15, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
IGM
I was trying to find a microphone detection plugin where, whenever a player makes a sound, it could alert enemies nearby to the player.
Gives a sense of realism.

There was a thread that had something similar but the post was old, and the answer that was provided was speculation. where I need strong proof it can work. I looked at the script suggested and it seemed that it's more directed to internet browsers than actual programs.

If there isn't a script, that's fine. let me know if you need me to be specific.

Edit: The post that I was referencing that is nearly 5 years old.

Edit 2:
For those who went to the post linked.
Yes, I did make a reply mentioning that I used VXA.
I use both VXA and MV (the latter more recently) but I moved my game from VXA to MV because I felt like I can do more of what I want on MV than VXA. Not saying that MV is better than VXA.
Wondering, if you found an answer. Have the same type of question. Also can someone give me a hand with a method of recording sounds for my game? I'm using HEiL Sound PR-40 Dynamic model. This is a pretty good microphone, had some issues with my previous microphone, he doesn't record the proper quality of sound that I needed. So I tried to find a replacement and I found good info at the audio direct website with more information about the best microphones.
Please answer me PM, sorry for offtopic thought.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


It's my cute little ghost~
Minecraft Dungeons is a great example of a game that's much simpler than other games in its genre but almost as equally immersive and fun to play. Lotta RPGmaker devs could learn from that lesson.
Well, it's been a while since the last time I came here... Is there a JS scripting FAQ? I'd like to know what it's capable of achieving, and how :rswt
I love the Time Fantasy tiles, but haven't played anything made with it yet. Can anyone recommend me something?
Vote for what I show more indepth on Twitter tomorrow from the MZ default resources

Forum statistics

Threads
99,367
Messages
964,519
Members
130,979
Latest member
rpgmakernoob
Top