> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/portals/viewing-a-portal/sections/gallery/audio-files.md).

# Audio files

Visitors can play audio assets in the Portal instead of downloading them.

Audio assets play inside the Portal. A visitor selects one and gets a player, rather than having to download the file to hear it.

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FEMQHCggqD9iSh1bhtiGE%2Fimage.png?alt=media&#x26;token=1ab3d100-3850-4ea0-80f0-c281f9d5016d" alt=""><figcaption><p>An audio asset playing inside the Portal.</p></figcaption></figure>

{% hint style="info" %}
Nothing needs switching on. Audio plays wherever your gallery, asset section or link button points at an audio file.

Audio starts loading only when a visitor plays it, so a gallery full of audio doesn't download every track on open.
{% endhint %}

## Supported formats

**MP3**, **WAV**, **OGG**, **FLAC**, **AAC**, **M4A,** and **Opus**.

## Playing an asset

1. The visitor selects an audio asset from a gallery, an asset section, or a button linking to an audio file.
2. A player opens, showing the file-type icon and the file name.
3. Selecting play starts the audio. The player has the usual controls: play and pause, elapsed and total time, a scrub bar, and volume.

Audio reached through the asset details view plays in place, so visitors can move between files with the arrows and listen to each in turn. While the scrub bar is focused, the arrow keys move through the audio rather than jumping to the next asset.

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FrMLymHvJQ1qsBtMXMEtP%2Fimage.png?alt=media&#x26;token=31ab445e-4348-4cc8-938e-9da04234c21f" alt=""><figcaption><p>The player's controls: play and pause, elapsed and total time, a scrub bar and volume.</p></figcaption></figure>

{% hint style="info" %}
If an asset has no playable file behind it, the player says *Audio preview is not available.* rather than opening empty.
{% endhint %}

## In a gallery

Audio assets show a file-type icon on their card rather than a thumbnail, since there is no image to show. The file name, format and size appear beneath it, as with any other asset.

{% hint style="info" %}
Audio assets can still be downloaded, added to the cart and shared, exactly like other assets.
{% endhint %}
