# End(string)

> Stops recording.

## Definition

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

```csharp
public static void End(string deviceName)
```

### Parameters

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

### 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.0/script-reference/unityengine/microphone/devices.md) property.
