# Play Audio

**Introduction**

The "Play Audio" step allows you to play an audio file or stream in a specified voice channel. This step is useful for automations that involve playing music, sound effects, or other audio content within a Discord server.

**Configuration**

* **Channel**: Specifies the voice channel where the audio will be played. This parameter is required.
* **Source**: The source of the audio, which can be provided in one of two ways:
  * **URL**: A URL pointing to the audio file. This parameter is required if no file is provided.
  * **File**: An audio file uploaded directly. This parameter is required if no URL is provided.
* **Duration**: (Optional) Limits the playtime of the audio. If not specified, the audio will play in full.
* **Volume**: The volume level for playback, ranging from 0 to 1000, with a default value of 50.

This step allows for flexibility in audio playback, with options for both volume control and playtime limits.


---

# 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.flexy.bot/modules/discord/steps/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.
