LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Microphone.IsRecording

Switch to Manual
public static bool IsRecording(string deviceName);

Parameters

deviceNameThe name of the device.

Description

Query if a device is currently recording.

If you pass a null or empty string for the device name then the default microphone will be used. You can get a list of available microphone devices from the devices property.