# IsRecording(string)

> Query if a device is currently recording.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AudioModule

```csharp
public static bool IsRecording(string deviceName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the device.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

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 [Microphone.devices](/engine/6000.6/script-reference/unityengine/microphone/devices.md) property.
