Token导航 LogoToken导航TokenDH.com
音频生成需要联网clawhub未标认证来源可访问clear审计提醒

ultimate-music-manager终极音乐经理

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

2,328

周安装

97

GitHub Stars

公开资料未说明

下载量

776
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ultimate-music-manager(终极音乐经理)
来源仓库:https://github.com/drajb/ultimate-music-manager
安装命令:
openclaw skills install ultimate-music-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ultimate-music-manager

简介

使用声学指纹识别、重复数据删除、元数据丰富和选项,将杂乱的本地音乐库组织成干净的语言/艺术家/专辑层次结构。

SKILL.md

name
ultimate-music-manager
description
Organises a messy local music library into a clean Language/Artist/Album hierarchy using acoustic fingerprinting, deduplication, metadata enrichment, and optional Spotify sync. Use when: (1) User wants to sort or clean up a folder of audio files, (2) User has untagged or badly-tagged MP3/FLAC/M4A files, (3) User wants to identify unknown songs via Shazam fingerprinting, (4) User wants to deduplicate audio files by content hash, (5) User wants to enrich metadata with iTunes artwork and LrcLib lyrics, (6) User wants to sync their local library to Spotify playlists.
metadata
openclaw
requires
env
optionalEnv
bins
optionalBins
primaryEnv
MUSIC_ROOT
source
https://github.com/drajb/sonic-phoenix

Sonic Phoenix

A multi-phase pipeline that transforms a disorganised local music collection into a pristine, fully-tagged library sorted by <Language>/<Artist>/<Album>/<Artist> - <Title>.<ext>. Works with any language — Hindi, English, Japanese, Spanish, or anything else your collection contains.

The pipeline never deletes audio files. Suspected duplicates are moved to a staging folder for manual review.

Quick Reference

SituationAction
First-time setupEnvironment Setup
Sort a messy music folderRun Phases 1-5 in order
Identify unknown songsRun Phase 1 (Shazam fingerprinting)
Find and remove duplicatesRun Phase 2 (SHA-256 catalog)
Fix bad/missing ID3 tagsRun Phase 4 (iTunes enrichment)
Sync library to SpotifyRun Phase 6 (requires Spotify app credentials)
Add language classification hintsCreate hint files in config/language_hints/
Check current configurationpython config.py

Environment Setup

Prerequisites

  • Python 3.12 (required — shazamio-core only ships wheels for 3.10-3.12)
  • Git (to clone the repo)
  • FFmpeg (optional — only needed if your collection contains non-MP3 formats like FLAC, OGG, or WMA that Shazam needs to decode)

Installation

# Clone into your music folder (recommended) or anywhere else
cd /path/to/your/music
git clone https://github.com/drajb/sonic-phoenix.git
cd sonic-phoenix

# Create virtual environment with Python 3.12
python3.12 -m venv .venv

# Activate
source .venv/bin/activate          # macOS / Linux
# .venv\Scripts\activate           # Windows PowerShell
# .venv\Scripts\activate.bat       # Windows cmd

# Install dependencies
pip install -r requirements.txt

Configuration

Create a .env file in the repo root (copy from .env.example):

# REQUIRED — absolute path to the root of your music collection
MUSIC_ROOT=/path/to/your/music

# OPTIONAL — override any of these defaults:
# SORTED_ROOT=/path/to/your/music/Sorted
# DATA_DIR=/path/to/your/music/.data
# SHAZAM_CONCURRENCY=20
# ITUNES_COUNTRIES=US,GB

Verify configuration:

python config.py

This prints all resolved paths and confirms MUSIC_ROOT exists.

Directory Layout After Setup

<MUSIC_ROOT>/
├── sonic-phoenix/           # This repo
│   ├── config.py            # Central configuration (single source of truth)
│   ├── .env                 # Your local overrides (gitignored)
│   ├── 01A_extract_metadata.py
│   ├── 01D_shazam_all_files.py
│   ├── ...
│   └── config/
│       └── language_hints/  # Optional language classification overrides
│           └── examples/    # Templates to copy and customise
├── Sorted/                  # Pipeline output (auto-created)
│   ├── English/
│   │   ├── Adele/
│   │   │   └── 25/
│   │   │       └── Adele - Hello.mp3
│   │   └── ...
│   ├── Hindi/
│   └── <any language langdetect finds>/
├── .data/                   # Machine-generated JSON artifacts (auto-created)
│   ├── metadata_catalog.json
│   ├── shazam_final_results.json
│   ├── catalog.json
│   ├── final_catalog.json
│   └── ...
└── <your unsorted audio files>

The Pipeline

Happy Path (Minimum Viable Run)

For a quick, effective sort of your library, run these scripts in order:

python 01A_extract_metadata.py     # Extract ID3/FLAC tags
python 01D_shazam_all_files.py     # Acoustic fingerprint every file via Shazam
python 02A_catalog_music.py        # SHA-256 hash catalog + duplicate detection
python 02D_organize_music.py         # Sort into Language/Artist/Album hierarchy
python 03A_consolidate_by_artist.py --dry-run   # Preview artist folder merges
python 03A_consolidate_by_artist.py              # Execute merges
python 03D_titanium_resort.py      # Final structural enforcement pass
python 04I_polish_and_enrich_v6.py # Enrich tags via iTunes + embed artwork
python 05I_finalize_catalog.py     # Lock the master catalog

Each script is resumable — if interrupted, re-run it and it picks up where it left off.

Phase 1: Extraction and Identification

ScriptStatusPurpose
01A_extract_metadata.pyCANONICALReads existing ID3/FLAC/MP4 tags via Mutagen. Splits files into tagged_files and untagged_files in metadata_catalog.json.
01B_shazam_identify.pyUTILITYShazam-identify only the untagged files from 01A.
01C_shazam_by_hash.pyUTILITYPropagate a single Shazam match to all byte-identical copies (via hash groups from Phase 2).
01D_shazam_all_files.pyCANONICALForce every audio file through Shazam regardless of existing tags. Use this when tags are unreliable. 20-way concurrent by default.
01E_test_matching.pyUTILITYSpot-check a handful of files against Shazam to verify the pipeline is working.

When to use 01B vs 01D: If your collection has clean tags on most files, use 01A then 01B (faster — only fingerprints untagged files). If tags are unreliable (generic names like "Track 01", meaningless album fields, garbled metadata), use 01D to fingerprint everything and cross-validate against the acoustic results.

Shazam rate limiting: If you see HTTP 429 errors, lower SHAZAM_CONCURRENCY in your .env (try 5-10).

Phase 2: Cataloguing and Deduplication

ScriptStatusPurpose
02A_catalog_music.pyCANONICALSHA-256 hash every audio file. Writes catalog.json with duplicate groups.
02B_analyze_catalog.pyUTILITYAnalyses the hash catalog and prints duplicate statistics. Read-only reporter.
02C_organize_files.pyUTILITYOrganises files using the hash catalog and final catalog. Alternative to 02D.
02D_organize_music.pyCANONICALThe main sorter. Reads Shazam results and moves files into <SORTED_ROOT>/<Language>/<Artist>/<Album>/.

Phase 3: Consolidation and Structural Cleanup

ScriptStatusPurpose
03A_consolidate_by_artist.pyUTILITYMerge fragmented artist folders (e.g. "Akon feat Eminem" into "Akon"). Supports --dry-run.
03D_titanium_resort.pyCANONICALFinal structural enforcer. Any file not matching Language/Artist/Album/ gets re-sorted.
03F_reorganize_binary.pyUTILITYResolve near-duplicate files via binary comparison.

Phase 4: Metadata Enrichment

ScriptStatusPurpose
04I_polish_and_enrich_v6.pyCANONICALThe single enrichment entry point. Cleans junk from tags (quality markers, description artifacts, miscellaneous noise), enriches via iTunes Search API (artist, title, album, release date, artwork), fetches synchronized lyrics from LrcLib, embeds cover art into ID3 tags.

iTunes rate limiting: The script rotates queries across country codes (default: US, GB). Add more via ITUNES_COUNTRIES=US,GB,AU,CA in .env.

Phase 5: Finalization

ScriptStatusPurpose
05I_finalize_catalog.pyCANONICALMerges ID3 tags, Shazam results, and NLP language classification into final_catalog.json. This is the read-only master snapshot of the library.

Supporting utilities: 05A (JSON repair), 05B (sanitize results), 05C (confidence audit), 05D (residue purge), 05E/05H (empty-folder vacuum).

Phase 6: Spotify Sync (Optional)

Requires a free Spotify Developer account.

ScriptStatusPurpose
06B_spotify_setup.pyCANONICALOAuth handshake — run once to cache the token.
06C_spotify_backup.pyCANONICALSnapshot all existing playlists before making changes.
06D_spotify_sync_engine.pyCANONICALCreates per-language playlists mirroring your local library. Resumable.
06E_spotify_discovery_sync.pyCANONICALCross-references local artists with Spotify listening history and generates genre-based "Essentials" playlists.

Spotify setup:

  1. Create an app at https://developer.spotify.com/dashboard
  2. Set Redirect URI to http://127.0.0.1:8888/callback
  3. Add to .env:
   SPOTIFY_CLIENT_ID=your_client_id
   SPOTIFY_CLIENT_SECRET=your_client_secret
  1. Run python 06B_spotify_setup.py — browser opens, approve scopes, token is cached.

Language Classification

The pipeline uses langdetect (NLP) to classify tracks by language automatically. No hardcoded language list — it creates whatever folders your collection needs.

Language Hints (Optional)

For artists that NLP can't classify from Latin-script titles (e.g. Bollywood artists romanised as "Arijit Singh"), create hint files:

config/language_hints/
├── examples/           # Copy and customise these templates
│   ├── English.json
│   ├── Hindi.json
│   └── README.md       # Full schema reference
├── Hindi.json          # Your custom hints (create from examples)
└── Spanish.json

Hint file schema:

{
  "artists": ["Arijit Singh", "A.R. Rahman", "Shreya Ghoshal"],
  "dna": ["bollywood", "bhangra", "desi"],
  "keywords": ["ishq", "dil", "pyaar"],
  "lang_codes": ["hi", "pa"]
}
  • artists — exact artist names to classify into this language
  • dna — substrings to match in folder/file paths
  • keywords — substrings to match in track titles
  • lang_codes — ISO 639-1 codes that langdetect might return for this language

Configuration Reference

All configuration lives in config.py and is driven by environment variables (set in .env or your shell).

VariableRequiredDefaultPurpose
MUSIC_ROOTYesParent of repo dirRoot of your music collection
SORTED_ROOTNo<MUSIC_ROOT>/SortedDestination for sorted files
DATA_DIRNo<MUSIC_ROOT>/.dataMachine-generated JSON artifacts
DUPLICATES_STAGINGNo<repo>/Duplicates_StagingQuarantine for suspected duplicates
UNIDENTIFIED_DIRNo<SORTED_ROOT>/UnidentifiedFiles Shazam couldn't identify
FFMPEG_BINNo<MUSIC_ROOT>/ffmpeg/binPortable FFmpeg path (Windows)
SHAZAM_CONCURRENCYNo20Parallel Shazam calls (lower if rate-limited)
ITUNES_COUNTRIESNoUS,GBCountry codes for iTunes API rotation
SPOTIFY_CLIENT_IDPhase 6 onlySpotify app client ID
SPOTIFY_CLIENT_SECRETPhase 6 onlySpotify app client secret
SPOTIFY_REDIRECT_URINohttp://127.0.0.1:8888/callbackSpotify OAuth redirect

Supported Audio Formats

.mp3, .m4a, .flac, .wav, .ogg, .wma, .aac, .opus

Safety Guarantees

  • No deletion. Audio files are never deleted. Duplicates are moved to Duplicates_Staging/ for manual review.
  • No writes into the music hierarchy. All working state lives in <DATA_DIR> or the repo directory.
  • Resumable. Every script can be interrupted and re-run safely.
  • Non-destructive tags. Enrichment writes new tags but does not remove existing valid data.

Troubleshooting

ProblemFix
shazamio-core fails to installYou're on Python 3.13+. Use Python 3.12: python3.12 -m venv .venv
Shazam returns HTTP 429Lower SHAZAM_CONCURRENCY to 5-10 in .env
iTunes returns 403Add more country codes: ITUNES_COUNTRIES=US,GB,AU,CA,DE
MUSIC_ROOT does not existSet MUSIC_ROOT in .env to the absolute path of your music folder
Tags still show junk after enrichmentRe-run 04I_polish_and_enrich_v6.py — it's idempotent
Spotify 403 on playlist creationAdd your Spotify account under "Users and Access" in the Developer Dashboard (Development Mode restriction)
langdetect misclassifies a languageCreate a hint file in config/language_hints/ for that language
Empty artist/album folders after sortingRun 05E_final_cleanup.py or 05H_final_vacuum.py to vacuum empties

Scripts

Helper scripts that automate common workflows. Run from the repo root.

ScriptPurpose
ultimate-music-manager/scripts/preflight.shValidates Python 3.12, venv, dependencies, .env, MUSIC_ROOT, FFmpeg. Run before first pipeline execution.
ultimate-music-manager/scripts/run-pipeline.shExecutes the happy-path sequence (Phases 1-5) with progress and timing. Supports --skip-shazam, --spotify, --dry-run.
ultimate-music-manager/scripts/status.shDashboard showing file counts, language breakdown, data file status, and pipeline progress.

Usage

# Check environment is ready
bash ultimate-music-manager/scripts/preflight.sh

# Preview what the pipeline will do
bash ultimate-music-manager/scripts/run-pipeline.sh --dry-run

# Run the full pipeline
bash ultimate-music-manager/scripts/run-pipeline.sh

# Run including Spotify sync
bash ultimate-music-manager/scripts/run-pipeline.sh --spotify

# Check pipeline status at any time
bash ultimate-music-manager/scripts/status.sh

Hook Integration

A safety guard hook prevents accidental execution of destructive utility scripts.

Setup (Claude Code)

Add to .claude/settings.json:

{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Bash",
      "hooks": [{
        "type": "command",
        "command": "./ultimate-music-manager/hooks/safety-guard.sh"
      }]
    }]
  }
}

The hook intercepts commands referencing 05D_force_delete_residue, 05F_final_scrub, total_scrub, or absolute_zero_sort and injects a warning requiring explicit user confirmation. Silent (zero overhead) for all other commands.

See hooks/HOOK.md for details.

References

Detailed documentation for deeper dives:

DocumentContents
references/data-files.mdSchema and lineage for every JSON artifact — which script writes it, which scripts read it, full data flow diagram.
references/language-hints-guide.mdHow to create language hint files, full schema, examples for Hindi/Japanese/Spanish, tips for getting classification right.

Design Principles

  1. Config-driven. One config.py module, one .env file. No hardcoded paths anywhere.
  2. Language-agnostic. No baked-in language lists. langdetect + optional hint files handle any language.
  3. Phased and incremental. Each phase builds on the previous. You can stop after any phase and have a useful result.
  4. Auditable. Every move, merge, and enrichment decision is logged to JSON in <DATA_DIR>.
  5. Zero-config happy path. Clone into your music folder, create a .env with MUSIC_ROOT, and run.

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.81%
按下载量换算573

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills