Version: 2022.1
LanguageEnglish
  • C#

Microphone.devices

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static string[] devices;

Description

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.

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); } } }

See Also: Start, End, IsRecording.