# Get Audio Duration

**Introduction**

The "Get Audio Duration" step determines the duration of an audio file or stream. This step is useful for processing audio content where knowing the length of the audio is required.

**Configuration**

* **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.

**Outputs**

* **Duration**: The duration of the audio, returned as a time value. This output can be used in subsequent steps or actions.

You need to provide either a URL or a file to determine the audio duration.


---

# 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/get-audio-duration.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.
