Вы можете получить список доступных записывающих устройств, используя класс микрофона
// Get list of Microphone devices and print the names to the log
void Start()
{
foreach (var device in Microphone.devices)
{
Debug.Log("Name: " + device);
}
}
Вы можете использовать этот список устройств для создания аудиоклипов с каждого устройства
[SerializeField]
private AudioSource audioSource1;
[SerializeField]
private AudioSource audioSource2;
// Start recording with built-in Microphone and play the recorded audio right away
private IEnumerator Record()
{
audioSource1.clip = Microphone.Start("<audio-device-1>", true, 10, 44100);
audioSource2.clip = Microphone.Start("<audio-device-2>", true, 10, 44100);
}