audio-download

Download audio from YouTube and Twitter/X links

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "audio-download" with this command: npx skills add lucas-acc/sancho-skills/lucas-acc-sancho-skills-audio-download

Audio Download Skill

Download audio from YouTube and Twitter/X links using yt-dlp.

Supported Platforms

  • YouTube: Videos, Shorts, playlists
  • Twitter/X: Posts with video/audio content

Supported Audio Formats

  • MP3 (most compatible)
  • M4A (AAC audio)
  • WAV (uncompressed)
  • FLAC (lossless)
  • OGG (Vorbis/Opus)

Quality Options

  • 0 or best - Best quality available
  • 1 - High quality (~192kbps for MP3)
  • 2 - Medium quality (~128kbps for MP3)
  • 3 - Low quality (~64kbps for MP3)
  • worst - Lowest quality available

Basic Usage

Download from YouTube

# Download as MP3 (best quality)
yt-dlp -x --audio-format mp3 --audio-quality 0 -o "~/Downloads/audio/%(title)s.%(ext)s" "<YOUTUBE_URL>"

# Download YouTube Shorts as M4A
yt-dlp -x --audio-format m4a --audio-quality 0 -o "~/Downloads/audio/%(title)s.%(ext)s" "<SHORTS_URL>"

Download from Twitter/X

# Download audio from tweet as MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 -o "~/Downloads/audio/%(title)s.%(ext)s" "<TWITTER_URL>"

Common Options

# List available formats (without downloading)
yt-dlp -F "<URL>"

# Download specific format code
yt-dlp -f <FORMAT_CODE> -o "~/Downloads/audio/%(title)s.%(ext)s" "<URL>"

# Download with metadata/thumbnail
yt-dlp -x --audio-format mp3 --embed-metadata --embed-thumbnail -o "~/Downloads/audio/%(title)s.%(ext)s" "<URL>"

Python Helper Script

For batch operations or playlists, use the helper script:

# Basic download
python {baseDir}/scripts/download.py "<URL>"

# Specify format and output directory
python {baseDir}/scripts/download.py "<URL>" --format mp3 --output ~/Downloads/audio

# Download with specific quality
python {baseDir}/scripts/download.py "<URL>" --format m4a --quality best

# Download first 3 items from playlist only
python {baseDir}/scripts/download.py "<PLAYLIST_URL>" --playlist-items 3

Output Template Variables

Use these variables in the -o output template:

  • %(title)s - Video title
  • %(uploader)s - Channel/username
  • %(upload_date)s - Upload date (YYYYMMDD)
  • %(duration)s - Duration in seconds
  • %(id)s - Video ID
  • %(ext)s - File extension

Example with custom naming:

yt-dlp -x --audio-format mp3 -o "~/Downloads/audio/%(uploader)s - %(title)s [%(id)s].%(ext)s" "<URL>"

Troubleshooting

Update yt-dlp

If downloads fail, update yt-dlp to the latest version:

# If installed via brew
brew upgrade yt-dlp

# If installed via pip (ensure conda environment is activated)
conda activate default
pip install -U yt-dlp

Common Issues

"ffmpeg not found": Install ffmpeg - it's required for audio format conversion.

"Video unavailable": Some videos may be region-restricted or require authentication.

Slow downloads: Add --concurrent-fragments 5 to download multiple fragments in parallel.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

podcast-download

No summary provided by upstream source.

Repository SourceNeeds Review
General

Lyrics

Lyrics - command-line tool for everyday use

Registry SourceRecently Updated
General

Lint

Lint - command-line tool for everyday use

Registry SourceRecently Updated
General

Linkedin Post

LinkedIn文案生成、开头Hook、热门话题标签、轮播内容规划、高质量评论、个人简介优化。LinkedIn post writer with hooks, hashtags, carousel planning, comment templates, profile optimization. Use whe...

Registry SourceRecently Updated
1790ckchzh