No project description provided
Project description
NAFF YTAudio
A NAFF audio object for playing audio from YT_DLP.
Usage
from naff_yt_audio import YTAudio
audio = await YTAudio.from_url("https://www.youtube.com/watch?v=ldyqHK0tbSc")
await voice_state.play(audio)
And that's it, audio will be streamed from YouTube to NAFF.
If you'd rather download the audio first, simply add stream=False
.
audio = await YTAudio.from_url("https://www.youtube.com/watch?v=ldyqHK0tbSc", stream=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
naff-ytaudio-1.0.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file naff-ytaudio-1.0.0.tar.gz
.
File metadata
- Download URL: naff-ytaudio-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d159bd7e3724dd23b50c7a1feb83316aac534e510ca4a0abfc66b110c31bc7 |
|
MD5 | 9ea2f3eb93d14416bb950c91b9984ac6 |
|
BLAKE2b-256 | 3a7b9edb2c0df14eaf7fe90f41bfdaf915a17982db19502679321b3dcfd05527 |
File details
Details for the file naff_ytaudio-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: naff_ytaudio-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98802c57ae01342fdf2c81654d8ff97c1969048aac4383a23f8b2c0ddb46ba5 |
|
MD5 | 6bd297a5c920b41cdeb1e4a0e157e87f |
|
BLAKE2b-256 | a37d1c874642a347e5e48e53bae2c880666f464198afbb4149e391307592b248 |