singing-voice-analyzer

Analyzes users' singing recordings to produce a vocal profile, K-song pitch curves, a vocal ID and practice plan, and recommends best-fit songs from its song database; triggered when users upload recordings or ask related intents (e.g., pitch test, my vocal range, song recommendation).

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "singing-voice-analyzer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-54a8d80be6e8d618a11eced4acaeea38583e9e00fa19efa2f6c6b3a66f1dbcc0. Verify the upstream source and version against https://skillhub.cn/skills/user_860aa88c/chio-0101 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Analyzes users' singing recordings to produce a vocal profile, K-song pitch curves, a vocal ID and practice plan, and recommends best-fit songs from its song database; triggered when users upload recordings or ask related intents (e.g., pitch test, my vocal range, song recommendation).

0 Downloads

Introduction source: third_party · user_860aa88c · 1.3.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
```bash
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: singing-voice-analyzer
description: 分析用户唱歌录音的声音特征,生成声音画像、K歌曲线、嗓音身份证与练声计划,并从其歌曲数据库推荐最适合演唱的歌曲。触发词包括:唱歌录音分析、我适合唱什么歌、我的音域是多少、测音准、嗓音测试、声乐分析、声音画像、歌声打分、推荐歌曲、练声计划、嗓音卡片。当用户上传唱歌录音或询问上述任一意图时使用。
version: 1.3.0
agent_created: true

唱歌声音分析与歌曲推荐 Skill

功能概览

用户上传一段清唱录音(WAV / MP3 / M4A / FLAC),自动分析五个维度的声音特征,生成 声音画像(声部、音域、音色、音准、稳定性、表现力、综合等级),并从其歌曲数据库 (130 首,含原调、校准音域、难度、风格)匹配推荐最适合演唱的歌曲,附带推荐理由、自动转调建议 与练习建议。还可输出 K 歌曲线、嗓音身份证、练声计划 三种可视化产物。

分析维度:音域 / 音色 / 音准 / 稳定性 / 表现力(动态 + 气息)。

鲁棒性优先:任何单维度失败或输入异常都会被「结果信封」捕获并降级,整条链路永不崩溃; 缺失数据会明确告知用户而非给出误导性结论。详见 references/troubleshooting.md。

触发场景

  • 用户上传了唱歌录音文件,希望获得歌曲推荐或声音分析
  • 用户询问「我适合唱什么歌」「我的音域是多少」「帮我分析一下我的声音」「测音准」「嗓音测试」
  • 用户说「推荐适合我唱的歌」「声音分析」「嗓音分析」「声部测试」「歌声打分」「练声计划」

运行方式(命令式工作流)

第 1 步:确定 Python 解释器(依赖 librosa)

# 优先使用已预装 librosa 的托管 venv(本机已就绪)
VENV_PY="$HOME/.workbuddy/binaries/python/envs/default/Scripts/python.exe"
if [ ! -x "$VENV_PY" ]; then
  # 退回:用托管 Python 建 venv 并安装依赖(首次约需几分钟)
  MGD="$HOME/.workbuddy/binaries/python"
  PY=$(ls "$MGD/versions"/*/python.exe 2>/dev/null | head -1)
  [ -z "$PY" ] && PY="python3"
  "$PY" -m venv "$HOME/.workbuddy/skills/singing-voice-analyzer/.venv"
  VENV_PY="$HOME/.workbuddy/skills/singing-voice-analyzer/.venv/Scripts/python.exe"
  "$VENV_PY" -m pip install -r "$HOME/.workbuddy/skills/singing-voice-analyzer/requirements.txt"
fi

第 2 步:环境自检(可选但推荐)

"$VENV_PY" "$HOME/.workbuddy/skills/singing-voice-analyzer/scripts/analyze.py" --selftest

生成合成音频 + 边界用例,验证「依赖 + 分析链路」正常。全部 PASS 才说明可分发。

第 3 步:运行分析

SKILL="$HOME/.workbuddy/skills/singing-voice-analyzer"
"$VENV_PY" "$SKILL/scripts/analyze.py" <用户录音路径> --db "$SKILL/data/song_database.json" --top 8

常用附加参数:

  • --json:输出结构化 JSON(含 status / warnings 字段)
  • --no-denoise:跳过降噪(录音已很干净时)
  • --separate:轻量人声增强(HPSS 去打击乐,适合带伴奏录音)
  • --scene 聚会|独处|表白|练声:按场景过滤推荐
  • --curve:生成 K 歌曲线 HTML(含浏览器实时麦克风演唱)
  • --card:生成嗓音身份证雷达图卡片 HTML
  • --plan:生成个性化练声计划(Markdown + HTML)
  • --outdir <目录>:上述文件输出目录(默认与录音同目录)

一次出齐示例:

"$VENV_PY" "$SKILL/scripts/analyze.py" my_singing.wav \
  --db "$SKILL/data/song_database.json" --top 8 \
  --curve --card --plan --outdir ./output

解读与回复用户

  1. 看 status:若为 insufficient/failed,先告诉用户重新录制(安静、靠近麦克风、清唱、含高低音)。
  2. 报告声音画像(声部 + 音域 + 音色 + 综合等级)。
  3. 列出推荐歌曲(每首匹配理由 + 练习提示),必要时说明自动转调建议。
  4. 给出针对性练习建议。

文件结构

singing-voice-analyzer/
├── SKILL.md
├── requirements.txt            # librosa / numpy / soundfile / pydub / requests
├── scripts/
│   ├── analyze.py              # 主入口(CLI)+ 结果信封 + 降级调度
│   ├── env.py                  # 环境自检(依赖/ffmpeg/曲库)
│   ├── result.py               # 结果信封(status/warnings 降级机制)
│   ├── preprocess.py           # 加载/重采样/降噪/静音切除/HPSS
│   ├── vocal_range.py          # 音域检测 (pyin)
│   ├── timbre.py               # 音色分析 (MFCC)
│   ├── pitch_accuracy.py       # 音准评估
│   ├── stability.py            # 稳定性分析(颤音/长音/转音)
│   ├── expressiveness.py       # 表现力分析(动态/气息)
│   ├── voice_profile.py        # 画像聚合(容忍降级维度)
│   ├── recommender.py          # 推荐引擎(音域缺失时重分配权重)
│   ├── visualize.py            # K歌曲线 + 嗓音身份证 (自包含 HTML)
│   ├── practice_plan.py        # 个性化练声计划
│   ├── fetch_range.py          # API 自动获取 / 音域校准
│   ├── note_utils.py           # 音名/MIDI/频率工具
│   └── _selftest.py            # 内置自测(--selftest 调用)
├── data/
│   ├── song_database.json      # 130 首歌曲库(含 web_verified 校准)
│   └── web_ranges_batch1.json  # 已核实音域表(merge 示例)
└── references/
    ├── note_reference.md       # 音名对照表
    ├── scoring_model.md        # 评分模型与维度说明
    └── troubleshooting.md      # 排错与运行须知

参考文档(按需加载)

  • references/scoring_model.md:权重、综合等级、推荐公式、自动转调、结果信封状态码
  • references/troubleshooting.md:录音要求、状态码含义、依赖安装、常见现象对照表
  • references/note_reference.md:音名 ↔ MIDI ↔ 频率对照

本次新增能力(v1.3 · 可靠性 + 可分发)

聚焦让 Skill「拿来就能跑、跨各种诡异输入都不崩」:

1. 依赖/环境自检(env.py)

  • 启动时校验必需包(librosa/numpy/soundfile/pydub/requests)、ffmpeg、曲库存在性与 JSON 合法性。
  • 缺失时打印可读安装指引而非抛栈;ffmpeg 缺失仅警告(WAV/FLAC 仍可跑)。

2. 结果信封 + 优雅降级(result.py / analyze.py)

  • 统一 status ∈ {ok, partial, insufficient, failed} + warnings[]。
  • 输入检查:录音 <2s → partial;音量过低/有效人声占比 <15% → insufficient。
  • 各维度分析 try/except 降级:失败仅记警告、用安全默认值继续,不中断链路。
  • build_profile / recommend / match_artists 均容忍缺失维度(音域未知时跳过评分并重分配权重)。
  • 任何降级都给出明确提示,结论「仅供参考」而非误导。

3. 内置自测(_selftest.py + --selftest)

  • 生成合成男中音 → 断言 status=ok、声部识别、音域合理、推荐非空。
  • 边界用例:1s 静音 → 断言 insufficient 不崩;0.8s 短音 → 断言 partial 不崩。
  • 集成:完整 CLI --json 跑通退出 0。
  • 分发前跑一次 --selftest 即证明环境与分析链路健康。

历史能力(v1.1 / v1.2 已实现)

  • v1.1:轻量人声增强(--separate HPSS)、表现力维度(动态/气息)、颤音深度与规律性、 歌手相似度、自动转调、难度梯度、场景匹配。
  • v1.2:数据自更新(fetch_range.py merge/enrich,web_verified 共 23 首)、实时 K 歌曲线 (--curve,含浏览器实时麦克风)、练声计划(--plan)、嗓音身份证(--card)。

详见各 scripts/ 源文件与 references/ 文档。

Current listing version

1.3.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的声音分析与歌曲推荐闭环体验
  • 覆盖音域、音色、音准、稳定性、表现力五大维度
  • 支持生成 K 歌曲线、嗓音身份证、练声计划等可视化产物
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且精准,与功能高度匹配
  • 边界清晰,不易误触或漏触
Structure and Standards90/100

Highlights

  • 运行步骤清晰,含环境自检与自测机制
  • 提供完整 CLI 示例与参数说明
  • 文档结构完整,frontmatter 规范
Execution Reliability90/100

Highlights

  • 具备结果信封与优雅降级机制,链路永不崩溃
  • 环境自检与内置自测确保可分发性
  • 明确处理输入异常与维度失败场景
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 42

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

```bash

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.