Skip to content

Commit 3b33d56

Browse files
docs: add more specific docs for linux users using voice (#1333)
* docs: add more specific docs for linux users using voice * ci: correct from checks. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ba44e99 commit 3b33d56

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

docs/src/Guides/23 Voice.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,44 @@
22

33
So you want to start playing some 🎵tunes🎶 in voice channels? Well let's get that going for you.
44

5-
First you're going to want to get the voice dependencies installed:
6-
```
7-
pip install dis-snek[voice]
8-
```
5+
=== ":simple-windows: Windows"
6+
7+
First you're going to want to get the voice dependencies installed:
8+
```
9+
pip install discord.py-interactions[voice]
10+
```
11+
12+
Then you'll need to download [FFmpeg](https://ffmpeg.org) and place it in your project directory or PATH.
13+
14+
Now you've got those; let's make a simple play command to get you started.
15+
16+
=== ":simple-linux: Linux"
17+
18+
First you're going to want to get the voice dependencies installed:
19+
```
20+
pip install discord.py-interactions[voice]
21+
```
22+
23+
Then you'll need to install the following packages:
24+
[libnacl](https://github.com/saltstack/libnacl), [libffi](https://github.com/libffi/libffi), and [FFmpeg](https://ffmpeg.org)
25+
26+
:simple-debian: For debian based distros:
27+
```
28+
sudo apt install ffmpeg libffi-dev libnacl-dev
29+
```
30+
:simple-archlinux: For arch based distros:
31+
```
32+
sudo pacman -S ffmpeg libffi libnacl
33+
```
34+
:simple-fedora: For fedora based distros:
35+
```
36+
sudo dnf install ffmpeg libffi-devel libsodium-devel
37+
```
38+
39+
If you get an error about "Could not find opus library," your distro may not have libopus installed. You'll need to find documentation for your distro on how to install it.
940

10-
Then you'll need to download [FFmpeg](https://ffmpeg.org) and place it in your project directory or PATH.
1141

12-
Now you've got those; let's make a simple play command to get you started.
42+
Now you've got those; let's make a simple play command to get you started.
1343

1444
```python
1545
import interactions

0 commit comments

Comments
 (0)