Token导航 LogoToken导航TokenDH.com
音频生成敏感数据clawhub未标认证来源可访问clear审计通过

music-identify音乐识别

Agent Skill

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

总安装

4,751

周安装

202

GitHub Stars

公开资料未说明

下载量

1,664
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install music-identify

简介

基于 AudD API 实现音频片段的歌曲识别与元数据提取。

  • 适用于识别环境音轨、整理播放列表或验证音源信息。
  • 支持语音消息触发识别,并可自动同步至 Spotify 队列。
  • 依赖外部 API 可用性,网络不稳定时可能影响识别成功率。
  • music-identify 属于音频生成类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
music-identify
description
Identify songs from audio clips using AudD API and optionally queue them to Spotify. Triggers on /songsearch command, voice messages with song identification intent, or when user asks "what song is this." Also handles recall queries like "what did I shazam" or "what was that song" by reading the music log. Works with any audio file (OGG, MP3, WAV, etc.).

Music Identify

Identify songs from audio using AudD, return song info with Spotify link, and optionally queue to the user's active Spotify session.

Runtime Dependencies

Required on $PATH:

  • curl — HTTP requests to AudD and Spotify APIs
  • jq — JSON parsing for all API responses
  • python3 — Spotify OAuth flow only (scripts/spotify-auth.py)

Credentials

CredentialLocationRequiredPurpose
AudD API key~/.config/audd/api_keyYesSong identification
Spotify OAuth tokens~/.config/spotify/tokens.jsonNo (optional)Queue to Spotify
Spotify app credentials~/.config/spotify/credentials.jsonNo (optional)Token refresh

Security notes:

  • All credential files should be restricted: chmod 600.
  • This skill does not read, store, or access any platform tokens (Telegram, Discord, etc.). Audio file download from messaging platforms is handled by the host agent, not by this skill.

Trigger

  • User sends /songsearch then follows with a voice message or audio file
  • User asks to identify a song from audio ("what song is this", "identify this song", "shazam this")
  • User asks to recall previously identified songs ("what was that song", "what did I shazam")

Setup

AudD API Key (required)

  1. Sign up at <https://audd.io> (free tier: 300 requests, no credit card)
  2. Save key:
   mkdir -p ~/.config/audd
   echo "YOUR_KEY" > ~/.config/audd/api_key
   chmod 600 ~/.config/audd/api_key

Spotify Integration (optional)

  1. Create a Spotify Developer app at <https://developer.spotify.com/dashboard>
  2. Set redirect URI to your callback URL
  3. Save credentials:
   mkdir -p ~/.config/spotify
   cat > ~/.config/spotify/credentials.json << 'EOF'
   {"client_id": "...", "client_secret": "...", "redirect_uri": "https://your-host/callback"}
   EOF
   chmod 600 ~/.config/spotify/credentials.json
  1. Run the auth flow: python3 scripts/spotify-auth.py
  2. Open the printed URL in a browser, authorize, tokens save automatically
  3. chmod 600 ~/.config/spotify/tokens.json

Workflow — Song Identification

When a song identification is triggered:

  1. Prompt user for a voice clip if not already provided.
  2. Save the audio file to a temp location (e.g., /tmp/music-identify-<timestamp>.ogg). The host agent handles downloading audio from the messaging platform (Telegram, Discord, etc.) — this skill only needs the local file path.
  3. Run identification:
   scripts/identify.sh /path/to/audio-file.ogg
  1. Parse the JSON result and respond.
  2. If Spotify is configured and active, queue the track.
  3. Log the identification to memory/music-log.json.

Supported formats: OGG/Opus, MP3, WAV, FLAC, M4A. No transcoding needed — AudD accepts all common audio formats.

Workflow — Spotify Queue

After a successful identification, if Spotify tokens exist at ~/.config/spotify/tokens.json:

# Check if anything is playing
scripts/spotify-queue.sh status

# Queue the identified track
scripts/spotify-queue.sh queue "spotify:track:<track_id>"

If no active Spotify session is found, fall back to returning the Spotify link only.

Token refresh is handled automatically by spotify-queue.sh on 401 responses.

Response Format

  • Found: 🎵 {title} by {artist} + Spotify link on next line. If Spotify active, note it was queued.
  • Found, no Spotify match: 🎵 {title} by {artist} (no link)
  • Not found: "Couldn't identify that one. Try a longer clip with more of the melody (5+ seconds works best)."
  • Error: "Something went wrong with the identification. Try again."
  • Missing AudD key: "AudD API key not configured. Get one at https://audd.io and save to ~/.config/audd/api_key"

Memory Logging

Append identified songs to memory/music-log.json (one JSON object per line):

{"date":"2026-03-22","time":"14:30","title":"Viva La Vida","artist":"Coldplay","album":"Viva la Vida","spotify":"https://open.spotify.com/track/..."}

Create the file if it doesn't exist. For recall queries, read and present this log.

Scripts

ScriptPurposeDependencies
scripts/identify.sh <audio_file>POST audio to AudD, return JSONcurl, jq
scripts/spotify-auth.py [--url]One-time Spotify OAuth flowpython3
scripts/spotify-queue.sh queue <uri>Queue track to active Spotifycurl, jq
scripts/spotify-queue.sh statusCheck current Spotify playbackcurl, jq

Exit codes for identify.sh: 0=found, 1=not found, 2=error.

API Reference

See references/audd-api.md for AudD endpoint details, parameters, and response format.

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

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

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

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

平台分布

OpenClaw

88.75%
按下载量换算1,477

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills