On the asset store there is this free script https://www.assetstore.unity3d.com/#/content/12518
It has a slot for switching between mics, maybe you can extract the part you need out of it? it is open source after all.
Trending Articles
More Pages to Explore .....