Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

naff_ytaudio-1.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page