# AudioAsset
Represents an audio asset.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## AudioAsset interface

Represents an audio asset.

**Signature:**

```typescript
interface AudioAsset extends BaseAssetMixin
```

**Extends:** [BaseAssetMixin](/en/creator-api/types/base-asset-mixin)

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [type](/en/creator-api/types/audio-asset/type)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        'AUDIO'
      </td>

      <td>
        Asset type
      </td>
    </tr>

    <tr>
      <td>
        [uri](/en/creator-api/types/audio-asset/uri)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        string | null
      </td>

      <td>
        The audio source, or null if the audio data is unavailable
      </td>
    </tr>
  </tbody>
</table>

## Methods

<table>
  <thead>
    <tr>
      <th>
        Method
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [getDuration()](/en/creator-api/types/audio-asset/get-duration)
      </td>

      <td>
        Gets the duration of the audio in seconds
      </td>
    </tr>

    <tr>
      <td>
        [remove()](/en/creator-api/types/audio-asset/remove)
      </td>

      <td>
        Removes this audio asset and every audio layer that uses it
      </td>
    </tr>
  </tbody>
</table>
