audio-download
Download audio from YouTube and Twitter/X links
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Download audio from YouTube and Twitter/X links
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Transcribe audio files to text with automatic language detection (supports Chinese and English)
Download podcast episodes from 小宇宙 (Xiaoyuzhou.fm) and Apple Podcasts
Convert PDF files to plain text using PyMuPDF4LLM
| name | audio-download |
| description | Download audio from YouTube and Twitter/X links |
| metadata | {"openclaw":{"emoji":"🎵","requires":{"bins":["yt-dlp","ffmpeg"]},"install":[{"id":"brew-yt-dlp","kind":"brew","formula":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (brew)"},{"id":"pip-yt-dlp","kind":"pip","command":"pip install yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (pip)"},{"id":"brew-ffmpeg","kind":"brew","formula":"ffmpeg","bins":["ffmpeg"],"label":"Install ffmpeg (brew)"}]}} |
Download audio from YouTube and Twitter/X links using yt-dlp.
0 or best - Best quality available1 - High quality (~192kbps for MP3)2 - Medium quality (~128kbps for MP3)3 - Low quality (~64kbps for MP3)worst - Lowest quality available# 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 audio from tweet as MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 -o "~/Downloads/audio/%(title)s.%(ext)s" "<TWITTER_URL>"
# 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>"
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
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 extensionExample with custom naming:
yt-dlp -x --audio-format mp3 -o "~/Downloads/audio/%(uploader)s - %(title)s [%(id)s].%(ext)s" "<URL>"
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
"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.