# Audio

**Audio Objects** provide a means for the user to incorporate aural aspects to a *User Interface*, whether that be music, a chime alert, or a speech file.

In this version of **Incari Studio** only `.mp3` files are supported.

To create an **Audio Object**, either click the plus icon in the **Scene Outliner** or right-click in the **Scene Outliner**, hover over `Create`, and locate **Audio**.

![Create Audio Object with Plus Icon.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-14ac908adcf63c686abf01c63028fff6dd6adcc4%2Faudioimage120232.png?alt=media)

![Create Audio Object with Right-Click and Create.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-6e01ca8fe8c5a14ffe953230ef8e22be62bc698b%2Faudioimage220232.png?alt=media)

When an **Audio Object** is created, it is initially empty. Also, there is no visual component displayed in the **Scene**, even when a file is selected.

While the **Audio Object** has several **Attributes**, the most important of which is `Audio File` under `Audio`. Here the user can either drag a file from the **Asset Manager** or click the empty file icon and select the desired file from the pop-up Menu.

<div><figure><img src="https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-c931a0b1e0fbbb23f006e5e25676537a31a8ba50%2Faudioimage320232.png?alt=media" alt=""><figcaption><p>Audio Object before File is Selected.</p></figcaption></figure> <figure><img src="https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-26ec8c30495301b6011cddc320679acdd754cd94%2Faudioimage420232.png?alt=media" alt=""><figcaption><p>Create Audio Object after File is Selected.</p></figcaption></figure></div>

A preview of the **Audio** can be played, paused, or stopped within its **Scene** of **Incari Studio** by clicking the respective buttons in the **Attribute Editor**.

In order to use **Audios** in a **Project** and have them play in the **Player**, the user needs to use the **Media Nodes** in the **Logic Editor**. More information on using **Media Nodes** can be found [here](https://docs.incari.com/incari-studio/2023.2/toolbox/incari/media) and [here.](https://docs.incari.com/incari-studio/2023.2/toolbox/events/media) For understanding how to use **Object Nodes** in the **Logic Editor**, please refer to this [section](https://docs.incari.com/incari-studio/2023.2/objects-and-types/scene-objects/..#objects-in-logic).

An example **Logic** configuration can be seen below. This would allow one to play the **Audio** with `A` on their keyboard and stop it with `B`.

![Example Logic for Using Audio Objects in Incari Player.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-74e282b44d1d4339b92f756f3a1592ceb578399c%2Faudioexamplewithmedianodes.png?alt=media)
