|
Gives you a list microphone devices, identified by name.
Use this name to start and stop a recording.
// Get list of Microphone devices and print the names to the log
function Start () {
for (var device in Microphone.devices)
{
Debug.Log("Name: " + device);
}
}
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
foreach (string device in Microphone.devices) {
Debug.Log("Name: " + device);
}
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Start():
for device as string in Microphone.devices:
Debug.Log(('Name: ' + device))