Loading...
Loading...
Download YouTube video audio file. Use when user wants to extract audio or download music/podcast from a video.
npx skill4agent add kouko/monkey-knowledge-youtube-skills mk-youtube-get-audio/mk-youtube-get-audio <URL> [output_dir] [browser] [--force]| Parameter | Required | Default | Description |
|---|---|---|---|
| URL | Yes | - | YouTube video URL |
| output_dir | No | /tmp/monkey_knowledge/youtube/audio | Output directory for audio file |
| browser | No | auto | Browser for cookies (chrome, firefox, safari, edge, brave) |
| --force | No | false | Force re-download even if cached file exists |
/mk-youtube-get-audio https://youtube.com/watch?v=xxx/mk-youtube-get-audio https://youtube.com/watch?v=xxx ~/Music/mk-youtube-get-audio https://youtube.com/watch?v=xxx /tmp chrome{baseDir}/scripts/audio.sh "<URL>" "<output_dir>" "<browser>"┌─────────────────────────────┐
│ First attempt (no auth) │
└──────────────┬──────────────┘
│
┌───────┴───────┐
│ │
Success Failed
│ │
▼ ▼
[Return] ┌─────────────────────┐
│ Retry with cookies │
│ chrome → firefox → │
│ safari → edge → │
│ brave │
└──────────┬──────────┘
│
┌───────┴───────┐
│ │
Success Failed
│ │
▼ ▼
[Return] [Error]{
"status": "success",
"file_path": "/tmp/monkey_knowledge/youtube/audio/20091025__VIDEO_ID.m4a",
"file_size": "5.2M",
"cached": false,
"video_id": "dQw4w9WgXcQ",
"title": "Video Title",
"channel": "Channel Name",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"duration_string": "3:32"
}{
"status": "success",
"file_path": "/tmp/monkey_knowledge/youtube/audio/20091025__VIDEO_ID.m4a",
"file_size": "5.2M",
"cached": true,
...
}{
"status": "error",
"message": "Download failed (tried with and without cookies)"
}{YYYYMMDD}__{video_id}.{ext}20091025__dQw4w9WgXcQ.m4a| Browser | Parameter | Chrome Profile Support |
|---|---|---|
| Chrome | | Yes (auto-detect all profiles) |
| Firefox | | Default profile only |
| Safari | | Default profile only |
| Edge | | Default profile only |
| Brave | | Default profile only |
cached: true--force/mk-youtube-audio-transcribefile_path/mk-youtube-audio-transcribe <file_path> [model] [language]/mk-youtube-get-infozhja