# DownloadHandlerAudioClip

> Constructor, specifies what kind of audio data is going to be downloaded.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Networking](/engine/6000.7/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestAudioModule

## DownloadHandlerAudioClip(string, AudioType)

Constructor, specifies what kind of audio data is going to be downloaded.

```csharp
public DownloadHandlerAudioClip(string url, AudioType audioType)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The nominal (pre-redirect) URL at which the audio clip is located.**** (\[AudioType]\(/engine/6000.7/script-reference/unityengine/audiotype)): Value to set for [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) type.

### Remarks

The value in `audioType` will be used to parameterize the [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) when importing the downloaded audio data.

## DownloadHandlerAudioClip(Uri, AudioType)

Constructor, specifies what kind of audio data is going to be downloaded.

```csharp
public DownloadHandlerAudioClip(Uri uri, AudioType audioType)
```

### Parameters

**** (\[Uri]\(https\://learn.microsoft.com/dotnet/api/system.uri)): A System.Uri object identifying the audio clip resource.**** (\[AudioType]\(/engine/6000.7/script-reference/unityengine/audiotype)): Value to set for [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) type.

### Remarks

The value in `audioType` will be used to parameterize the [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) when importing the downloaded audio data.

## DownloadHandlerAudioClip(string, AudioType, bool)

Constructor, specifies what kind of audio data is going to be downloaded.

```csharp
public DownloadHandlerAudioClip(string url, AudioType audioType, bool ambisonic)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The nominal (pre-redirect) URL at which the audio clip is located.**** (\[AudioType]\(/engine/6000.7/script-reference/unityengine/audiotype)): Value to set for [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) type.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true to mark the downloaded [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) as ambisonic.

### Remarks

The value in `audioType` will be used to parameterize the [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) when importing the downloaded audio data.

## DownloadHandlerAudioClip(Uri, AudioType, bool)

Constructor, specifies what kind of audio data is going to be downloaded.

```csharp
public DownloadHandlerAudioClip(Uri uri, AudioType audioType, bool ambisonic)
```

### Parameters

**** (\[Uri]\(https\://learn.microsoft.com/dotnet/api/system.uri)): A System.Uri object identifying the audio clip resource.**** (\[AudioType]\(/engine/6000.7/script-reference/unityengine/audiotype)): Value to set for [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) type.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true to mark the downloaded [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) as ambisonic.

### Remarks

The value in `audioType` will be used to parameterize the [AudioClip](/engine/6000.7/script-reference/unityengine/audioclip.md) when importing the downloaded audio data.
