No project description provided
Project description
A collection of useful audio scripts for NAFF
pip install naff_audio
NAFF YTAudio
A NAFF audio object for playing audio from YT_DLP.
from naff_audio import YTAudio
audio = await YTAudio.from_url("https://www.youtube.com/watch?v=ldyqHK0tbSc")
await voice_state.play(audio)
NAFF Queue
A basic queue system.
import os
from naff_audio import NaffQueue
from naff import AudioVolume
vc = await channel.connect()
queue = NaffQueue(vc)
# enqueue all songs in a given folder
path = r"some_dir_of_music/"
for song in os.listdir(path):
queue.put(AudioVolume(f"{path}/{song}"))
queue.start()
# start playing through the queue
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-audio-1.2.0.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file naff-audio-1.2.0.tar.gz
.
File metadata
- Download URL: naff-audio-1.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859b728bc6d8db81e5c659d32d5dd5fb9564cca00337075032886aa2d4ee7e69 |
|
MD5 | 6f01c62a2caf15cc4b40cc4ed1dab192 |
|
BLAKE2b-256 | 7f86f224f6686a19acb15ba48a27ec9363ffbf52d26e37e7d3de77ac8d77c419 |
File details
Details for the file naff_audio-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: naff_audio-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d10d8ad843c0a04eaca16bdc3007eb8a7683f84bf6704f7367fb3aebad368f |
|
MD5 | 1d53831a5557de43b9fb10154ed98a37 |
|
BLAKE2b-256 | 471519e9cdb8ae20796c0c10a26cdebf0c5a3e352aed51d1e4b9c0ee9d7e0db7 |