Content-Length: 20107 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Microphone-devices.html
A list of available microphone devices, identified by name.
You can use the name with the Start and End functions to specify which microphone you wish to start/stop recording.
Note: On the Web platform, the list remains empty until the user provides authorization. Request authorization using Application.RequestUserAuthorization.
using UnityEngine;
public class Example : MonoBehaviour { // Get list of Microphone devices and print the names to the log void Start() { foreach (var device in Microphone.devices) { Debug.Log("Name: " + device); } } }
Additional resources: Start, End, IsRecording.
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Microphone-devices.html
Alternative Proxies: