Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: drewdavis on Fri 06/09/2024 05:02:37

Title: Is there a way to have a game react to mic input from the player?
Post by: drewdavis on Fri 06/09/2024 05:02:37
Say you have a puzzle where the solution is for the player shout into the mic to startle an npc, or where the player has to stay quiet as they're sneaking by something. It doesn't have to be able to tell what the player is saying or anything crazy like that, just detect whether a mic is picking up sound. Is there anything like that?
Title: Re: Is there a way to have a game react to mic input from the player?
Post by: Snarky on Fri 06/09/2024 10:11:01
AGS doesn't natively have any way to detect microphone input. You would need a plugin.
Title: Re: Is there a way to have a game react to mic input from the player?
Post by: Crimson Wizard on Fri 06/09/2024 13:22:11
I once wrote a AGS plugin that recorded input from a mic into the file (using SDL2), that in turn could be loaded an played in the game; so that's definitely doable.