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
Metadata
Release files for naff-audio 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| naff-audio-1.2.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| naff_audio-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / naff-audio-1.2.0.tar.gz
| Download URL | naff-audio-1.2.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
859b728bc6d8db81e5c659d32d5dd5fb9564cca00337075032886aa2d4ee7e69
|
|
BLAKE2b-256 checksum How to use checksums |
7f86f224f6686a19acb15ba48a27ec9363ffbf52d26e37e7d3de77ac8d77c419
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / naff_audio-1.2.0-py3-none-any.whl
| Download URL | naff_audio-1.2.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31d10d8ad843c0a04eaca16bdc3007eb8a7683f84bf6704f7367fb3aebad368f
|
|
BLAKE2b-256 checksum How to use checksums |
471519e9cdb8ae20796c0c10a26cdebf0c5a3e352aed51d1e4b9c0ee9d7e0db7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for naff-audio 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.