I want to controle a player with microphone. Is there any way to do that?
Yes, but you may have to spend money for that. I mean, you could code voice recognition software from scratch, but it could take years to make something that performs at a commercial level.
The Unity store has an asset called Word Detection, it allows you to give microphone commands to control your game.
On Mobile, you could hook into the Nuance SDK.
But to be fair, he didn’t say he wanted to control his player with words. Perhaps he wants to control it with whistling, or singing different pitches. That’d be a whole different ballgame.
@HantaAkai , please explain better what you’re trying to do.
JoeStrout, you’re right I want to use voice just like a button: if the voice is making some noise, then the player, for example, goes up or to a different direction
This is a good question. I assume you’ve seen the Microphone class. It can be used to create an AudioClip component, unfortunately the AudioClip alone doesn’t expose the data you need.
As usual, someone smarter than me has covered it:
http://www.kaappine.fi/tutorials/using-microphone-input-in-unity3d/
Fairly thorough, too.