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 hashes)
Built Distribution
Close
Hashes for naff_audio-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d10d8ad843c0a04eaca16bdc3007eb8a7683f84bf6704f7367fb3aebad368f |
|
MD5 | 1d53831a5557de43b9fb10154ed98a37 |
|
BLAKE2b-256 | 471519e9cdb8ae20796c0c10a26cdebf0c5a3e352aed51d1e4b9c0ee9d7e0db7 |