# Audio

## Can I add audio to my experience?

{% hint style="info" %}
To play your audio at any desired time, make use of "Rules". Ensure that you apply the "should play" rule, when any event occurs.
{% endhint %}

### Step 1: Add an Audio Element

You can add an Audio file by clicking on the '**+**' icon in the top bar and selecting ‘Audio’.

<figure><img src="/files/f83Zj2mXlTrnMWw26xVw" alt=""><figcaption><p>Adding Audio element</p></figcaption></figure>

### Step 2: Upload / Choose file

On the right panel, go to properties and select 'Click to Upload'.

You can choose the audio file from your computer or select from the available templates.

Read below to know how to select a file to upload an audio element.

{% content-ref url="/pages/89Dj2jFYZ5UbZ0t6i2fd" %}
[Selecting a file](/metaverse/build/editor/file-manager/3rd-person-scenes.md)
{% endcontent-ref %}

<figure><img src="/files/pAiPlDgjFcuASHEOJ600" alt=""><figcaption><p>Selecting an audio file</p></figcaption></figure>

### Step 3: Adjust the Audio element

From the Properties Panel, you can preview the audio element, control the volume, silence it, or set it to loop.

<figure><img src="/files/nAc7UgFNtoYovrK0iKzF" alt=""><figcaption><p>Adjusting the audio element</p></figcaption></figure>

## Example Experience

{% embed url="<https://rnghud.gmetri.com/audio_1>" %}
Example Experience - Audio
{% endembed %}

The rules applied in the above experience are shown below

<figure><img src="/files/25K0mg4yEkHxzcFjv9Ut" alt=""><figcaption><p>Rules applied in the example experience</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gmetri.com/metaverse/build/elements/audio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
