librosa-audio

Extract MIR features from audio and retrieve similar tracks via k-NN.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill librosa-audio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: librosa-audio
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/16-art-music/librosa-audio
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill librosa-audio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires librosa, numpy, scipy, scikit-learn, pandas, soundfile, pyarrow.

What problem does it solve?

Turn raw audio files into reliable musical fingerprints by extracting tempo, chroma, MFCCs, spectral descriptors, and pitch, so you can analyze tracks or search for similar songs.

Core Features & Use Cases

  • End-to-end MIR feature extraction: Load music, compute beat/tempo, chroma, MFCCs (including deltas), spectral features, onset detection, and pitch statistics into one consistent vector per track.
  • Corpus-level similarity search: Build a feature dataset for a music folder and retrieve the k most similar tracks to a query using feature scaling and nearest-neighbor search.
  • Audio analysis workflows: Use features for playlist generation, music recommendation prototyping, music dataset exploration, and creating training inputs for downstream ML tasks.

Quick Start

Use the librosa-audio skill to find the 5 most similar tracks in a music corpus to an attached query file.

Frequently Asked Questions about librosa-audio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract MFCC and tempo features from audio files for music recommendation?

You can extract MFCC, tempo, chroma, and pitch features from audio files to build consistent track vectors for music recommendation. This process computes various musical descriptors per track and aggregates them for similarity search.

What is the best way to find similar songs using audio feature extraction?

Audio feature extraction finds similar songs by computing musical characteristics like MFCCs and chroma into a vector, then using nearest-neighbor retrieval to match a query track against a corpus of feature data.

Can I use librosa and scikit-learn for k-NN similarity search over a music corpus?

Yes, you can use librosa for audio feature extraction and scikit-learn for k-NN similarity search over a music corpus. The workflow involves extracting features with librosa, scaling them, and applying nearest-neighbor algorithms to find matching tracks.

How do I build a feature dataset for playlist generation from a music folder?

To build a feature dataset for playlist generation, load audio files from a music folder and extract spectral features, onsets, and tempo into a numeric matrix. This creates a stable dataset for retrieving similar tracks and prototyping playlists.

Does this audio similarity search approach include chroma and onset detection?

Yes, the audio similarity search approach includes chroma and onset detection alongside tempo, pitch, and MFCC delta calculations. These combined features create a comprehensive musical fingerprint for each track to improve retrieval accuracy.