YT-DLX: The Ultimate Multimedia Downloader

YT-DLX is a powerful and versatile tool that allows you to download audio and video content from a wide range of sources, including YouTube, Vimeo, and many more.

logo
Documentation

YtDlx.Audio.Highest()

Downloads or streams the highest quality audio from YouTube.

Highest Quality Audio

Download or stream the best audio quality

Parameters

options

An object containing the configuration options.

options.query

The search query or video URL. Required.

options.output

(Optional) The directory to save the output file.Cannot be used with metadata: true.

options.useTor

(Optional) Whether to use Tor.

options.stream

(Optional) Whether to stream the output.Cannot be used with metadata: true.

options.verbose

(Optional) Enable verbose logging.

options.metadata

(Optional) Only fetch metadata.Cannot be used with output,stream, orfilter.

options.filter

(Optional) An audio filter to apply.Cannot be used with metadata: true.

Available: "echo""slow""speed""phaser""flanger""panning""reverse""vibrato""subboost""surround""bassboost""nightcore""superslow""vaporwave""superspeed"

Return Value

An EventEmitter instance for handling events during the audio processing.

Emits "start"

FFmpeg command started.

Emits "progress"

Download/stream progress.

Emits "end"

Process complete (path or stream path).

Emits "metadata"

Video metadata, highest audio format details, suggested filename.(if metadata: true)

Emits "stream"

Streamable filename/path and FFmpeg instance.(if stream: true)

Emits "error"

Error occurred.