iOS External Microphone

Hello, Unity people.

I’m trying to play in-scene audio streamed from an external microphone connected to an iOS device. Nothing fancy, no blow detection, no voice control. Really just play what’s heard.

I use Microphone.devices for this. With or without the external microphone plugged in it always lists the only entry “iPhone audio input”.

The problem is it apparently doesn’t list the external microphone. When hearing the audio with or without the external mic the result is the same. And it would almost guaranteed to be better, should the external (very good and expensive directional) mic be plugged in.

Is there any XCode setting or line of code that’s missing in order for Unity iOS build to recognise an external mic instead of the integrated one?

Thanks in advance!

2 Answers

2

Solved this. Ironically the problem was hardware, not software. It appeared mic’s audio jack was 3 pin while what I needed for the iDevice to recognise is is 4 pin. Thus an audio adapter like on the picture does the trick. Hope it helps anyone with the same problem.

Thanks! :)

Thanks! :slight_smile: