# How to prototype with sounds

### Uploading your sounds

Upload your sound file via the Dashboard (learn more about uploading files [here](https://learn.shapesxr.com/import/uploading-and-using-your-assets)).

{% hint style="warning" %}
Be mindful when using audio files longer than 5 minutes, as they may impact performance or processing time.
{% endhint %}

<figure><img src="https://1564817110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV5IFh3rk5kqfCwJPPYhE%2Fuploads%2FVHA3UiXg5alRu4WuD1Sh%2FScreenRecording2024-06-24at11.50.02.gif?alt=media&#x26;token=173a9c55-3490-4626-a85d-9aa83c5c7324" alt=""><figcaption></figcaption></figure>

### Prototyping with sounds

In ShapesXR, you can prototype with sounds using the Interactivity system. You can do it in both the app and [Web Editor](https://learn.shapesxr.com/web-editor).

1. Open the **Prototyping tab** in the menu.&#x20;
2. **Add a new interaction** and choose the trigger or condition you need for this interaction.
3. Choose **Play Sound** action.
4. Click on the Sound file button to **select the sound**.
5. In the opened window, you can see all the sound files you have uploaded into ShapesXR. Click on the Play icon in the center of the file preview to **play the sound**.&#x20;
6. To **select the sound**, click on it. A blue frame will appear around it. Then, **confirm your selection** with a blue button at the bottom.&#x20;
7. You can set the **volume**, select the sound **emitter** if you want it to **spatialize**, or **loop** the sound.&#x20;
8. By default, the sound will stop when you switch the scene in the Play mode. If you want the sound to continue playing through all scenes, turn the "**Stop on scene switch**" toggle off. Alternatively, you can create interactivity with sound in the [Background scene](https://learn.shapesxr.com/basics/scenes#background-scene).
9. **Save the interactivity** using the Checkmark button at the top of the window.

<figure><img src="https://1564817110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV5IFh3rk5kqfCwJPPYhE%2Fuploads%2FVTEL423eYobGu8BDtk6f%2Fplay%20sound%20interactivity.gif?alt=media&#x26;token=d04219db-7f82-4574-b13d-094337b29d32" alt=""><figcaption></figcaption></figure>

To use this interactivity, go to the app and activate the Play Mode by pressing on the non-dominant stick. Then, activate this interactivity according to the chosen trigger - the sound starts to play. &#x20;


---

# 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://learn.shapesxr.com/prototyping/how-to-prototype-with-sounds.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.
