Log in or register to post comments

Mic input for Unity 3 Pro on Android

November 29, 2010 - 3:29am #3

Hey guys,

I realize Unity doesn't support microphone input on Android devices.

I was planning on making my Unity application communicate with another audio program on the Android(maybe Max or Processing as was suggested in other forums.)

Anyone know if this is possible? To communicate with say Processing from within the Unity project for the sole purpose of getting the volume input?
I know i have to use TCP networking code, but it would be helpful if someone can point me to a sample project or some code to get started.

I just want to check for volume threshold to trigger an event in my Unity application.


Re: Mic input for Unity 3 Pro on Android

November 29, 2010 - 6:04am #2

I can't help you with communicating with other applications, but have you considered adding microphone support via a plugin? You could work with the Android SDK in Java to gather microphone input (or volume levels, in this case). Then you would need to write a native interface, in C/C++, to provide this data to Unity. The only trick will be extending our QCAR plugin to add your functionality, and I'd be happy to help with that part.

If you want to go this route, I suggest trying to get microphone input into Unity without the QCAR extension at first. Here is the Unity documentation for creating plugins, be sure to follow the Android sections:


Let me know if you have any questions!

- Kim

Re: Mic input for Unity 3 Pro on Android

December 12, 2010 - 7:34am #1

I'd be happy to help out with that. I'm building my C++ bridge right now. So I should be able to help out in about a day or so.

Log in or register to post comments