# Discord Audio

![](/files/OrLNqOZbHxrFnbRuTPMu)

### Discord Audio

Discord Audio is a stable and easy to use discord voice channel framework which is compatible with multiple Discord.js versions. Discord Audio makes you able to play your favorite songs in a voice channel with your Discord bot. Discord Audio provides the following classes:

* [AudioManager](broken://pages/-MjtPCb5l4WrXIBrN0R4)
* [Player](broken://pages/-MjtGAvCw91E8hzJhUwy)
* [Connection](broken://pages/-MjtPJOVmHAnwYDgT_C9)
* [Broadcast](broken://pages/-MjtPNfFXNxn9mww90z5)
* [Adapter](broken://pages/-MjtPRALieistZs41FFJ)

The AudioManager and Player class are the classes that can be used for music players. The AudioManager class is the most easy to use and you should use if you are a beginning developer to start of with. The Player class is more advanced and has more options. If you are a more experienced developer you should use this class.

The Connection and Broadcast classes are made to play streams that never end for example a radio stream. To play a stream you'll always need the Connection class to create a connection. The Connection class can play a stream in one guild. The Broadcast class can be use to create a broadcast which you can use for multiple guilds. The Broadcasts need to be played via a Connection but the stream will be the same in every guild which makes you lose less memory than playing the same stream in every server via a connection.

The Adapter class is made to create an adapter if you're using another way to play a stream in a voice channel. In the most cases you need an adapter to be able to play a stream in a voice channel. The Adapter class creates one for the voice channel.

### Installation

```
$ npm install discordaudio@latest
```

```
$ yarn add discordaudio@latest
```


---

# 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://zyno-studio.gitbook.io/discord-audio/discord-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.
