# Microphone

> Use this class to record to an AudioClip using a connected microphone.

## Definition

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

```csharp
public sealed class Microphone
```

## Remarks

You can get a list of connected microphones from the [\_devices](/engine/6000.7/script-reference/unityengine/microphone/devices.md) property and then use the [Microphone.Start](/engine/6000.7/script-reference/unityengine/microphone/start.md) and [Microphone.End](/engine/6000.7/script-reference/unityengine/microphone/end.md) functions to start or end a recording session using one of the available devices.

**Note:** Unity mutes microphone recordings while the application is paused, for example when you pause it manually or when it loses focus and [\_runInBackground](/engine/6000.7/script-reference/unityengine/application/runinbackground.md) is disabled. The recording position keeps advancing, but the [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) receives silence until the application resumes.

**Note:** On Unity Web, the `Microphone` class requires user authorization to function. Request authorization via [Application.RequestUserAuthorization](/engine/6000.7/script-reference/unityengine/application/requestuserauthorization.md) before use.

## Static Properties

| Property                                                                     | Description                                                 |
| ---------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [devices](/engine/6000.7/script-reference/unityengine/microphone/devices.md) | A list of available microphone devices, identified by name. |

## Static Methods

| Method                                                                                   | Description                                    |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [End](/engine/6000.7/script-reference/unityengine/microphone/end.md)                     | Stops recording.                               |
| [GetDeviceCaps](/engine/6000.7/script-reference/unityengine/microphone/getdevicecaps.md) | Get the frequency capabilities of a device.    |
| [GetPosition](/engine/6000.7/script-reference/unityengine/microphone/getposition.md)     | Get the current recording position in samples. |
| [IsRecording](/engine/6000.7/script-reference/unityengine/microphone/isrecording.md)     | Query if a device is currently recording.      |
| [Start](/engine/6000.7/script-reference/unityengine/microphone/start.md)                 | Start Recording with device.                   |
