# Play Audio

A detailed explanation of controls and interface functions are described in the section [State Machine Builder User Interface](https://docs.google.com/document/d/1-o5qSv4zTkzj7YSmRTkV4zezFq7lwU00FyTy0kw1l1U/edit#bookmark=id.6vu41emx3478).

1. Within the edit Simulation section of the HyperSkill Desktop application, navigate to the State Machine tab.
2. Click on the desired state and from the dropdown in either the entry or exit actions select the type Play Audio.
3. Press the + button to add the state to the action list.

<figure><img src="/files/gDUjxdAEymciHfWz8I5H" alt=""><figcaption></figcaption></figure>

4. &#x20;From the ![](/files/oVZHGDulDmKBR11P5lZp) dropdown select your desired audio clip.
5. Set the Volume value, somewhere between the range of 0 to 1 to change the volume at which the Audio Clip will be played at.
6. You can set a delay (in seconds) that you want to wait for before the audio clip plays with the Delay field.
7. You can preview the audio with the selected volume settings by pressing the Preview Sound ![](/files/xN1QGMG56sET2ACR61Vz) button.

<br>


---

# 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.siminsights.com/authoring-a-simulation/state-machine/actions/play-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.
