- Home /
Microphone input volume to axis value translation
Hello everyone,
I want to make a voice chat program which features, amongst other things, mouths in the shape of simple circles, squares or triangles. I want these objects to scale up and down with the volume of the sound input. I looked into the reference for this, and all I found was AudioListener.GetOutputData and GetSpectrumData. The reference is terrible on these two, though, and I can't figure out how to translate the volume of whatever's being said to a simple Axis that'd control the mouth scaling. does anyone have any idea how to do this? Just a general idea would be nice to have.
Thanks in advance!
Answer by sneftel · May 30, 2011 at 11:32 PM
AudioListener is not a class for accessing a microphone. If you have Pro you can use a native plugin to read microphone input (and I assume there are existing plugins for this), but other than that, as far as I know there's no way to get access to audio input data.
Your answer
Follow this Question
Related Questions
Input.GetKeyUp for Axis input 2 Answers
Can Input.GetAxis be used without assigning via the Input Manager? 1 Answer
Microphone input to the game while it's running in background 0 Answers
Customized input axes aren't working 0 Answers
Input.GetAxisRaw 1 Answer