# 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://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-c6d36b4298736decdabf17b6d95b3d460e34dc7a%2Faudio2dimage120241.png?alt=media)

![Create Audio Object with Right-Click and Create.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-ae6dae5f2427a0b722b8be14d1148af26cf41674%2Faudio2dimage220241.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://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-965ee38632c31a2ec0f7cd3e5b4d74f78b4234ec%2Faudio2dimage320241.png?alt=media" alt=""><figcaption><p>Audio Object before File is Selected.</p></figcaption></figure> <figure><img src="https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-6ee6ca30d04d286fdfbc4e64a2da781c8a7757c3%2Faudio2dimage420241.png?alt=media" alt=""><figcaption><p>Audio Object after File is Selected.</p></figcaption></figure></div>

A preview of the **Audio** can be played, paused, or stopped within its **Scene2D** 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/toolbox/incari/media) and [here.](https://docs.incari.com/incari-studio/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/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://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-784ad573d5ca4da5c3755b96146dfa8b6578434f%2Faudio2dimage520241.png?alt=media)
