> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/state-machine-reference/actions/play-audio.md).

# Play Audio

Play Audio plays an audio clip, with a volume and an optional delay. For audio that comes from an object in the environment, see [Spatial Audio](/hyperskill-studio-authoring/state-machine-reference/actions/spatial-audio.md). A detailed explanation of controls and interface functions is 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 action to the action list.

<figure><img src="https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FkygYfCbyOdVIBvdxTaUU%2F116.png?alt=media&#x26;token=e77225a9-afb8-453c-a02d-acc0a257e5b7" alt=""><figcaption></figcaption></figure>

4. From the ![](https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2Fr8nssm5KrYbOIXxptcMn%2F117.png?alt=media\&token=f22270b7-a570-4c5a-bab7-83ab4e4a8076) dropdown, select your audio clip.
5. Set the Volume value, between 0 and 1, to change the volume at which the audio clip plays.
6. Use the Delay field to set a delay, in seconds, before the audio clip plays.
7. To preview the audio with the selected volume settings, press the Preview Sound ![](https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FadfIYGLw2e1BSyymtw8X%2Fimage90.png?alt=media\&token=4689a88a-76e1-44f5-b8fe-5ccd6c48f89a) button.
