# 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://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-5ab25473a8680a7bbe273c04fe031be04b9e216f%2Faudioimage120241.png?alt=media)

![Create Audio Object with Right-Click and Create.](https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-3e93b20422ffa09bfb0898feed1b85887c89fa3f%2Faudioimage220241.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://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-b2346dc983dbfcc511bee3bf02a186f03efa4132%2Faudioimage320241.png?alt=media" alt=""><figcaption><p>Audio Object before File is Selected.</p></figcaption></figure> <figure><img src="https://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-1acd24a890d3d330f3726f14e70c2be27f6e9d70%2Faudioimage420241.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/2024.1/toolbox/incari/media) and [here.](https://docs.incari.com/incari-studio/2024.1/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/2024.1/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://4263346935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnh3x8s9fddWeG8TaAug%2Fuploads%2Fgit-blob-e8f3e72453abeca5d5b1c4ef2bff1c8ede07c352%2Faudioimage520241.bmp?alt=media)
