Download YouTube videos as audio files using yt-dlp
Downloads audio from YouTube videos using yt-dlp. Triggers when users ask to extract audio from YouTube URLs or convert videos to audio files.
/plugin marketplace add MacHu-GWU/sanhe-claude-code-plugins/plugin install youtube@sanhe-claude-code-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/download_audio.pyExtract and download audio from YouTube videos.
python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=VIDEO_ID"
--video-url (required) - YouTube video URL to download--quality - Quality selector (default: "bestaudio[abr<=64]/worstaudio")--audio-format - Output format: mp3, aac, wav (default: mp3)--bitrate - Audio bitrate: 64K, 128K, 192K, 320K (default: 64K)--output - Custom output path (default: ~/tmp/download_audio_result.mp3)# Basic usage (default: 64K bitrate MP3 to ~/tmp/download_audio_result.mp3)
python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=d6rZtgHcbWA"
# High quality with custom bitrate
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --quality "bestaudio" --bitrate "128K"
# Custom output location
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --output "/path/to/output.mp3"
~/ffmpeg