Skip to content

crylent/AI_clustering

Repository files navigation

Audio Clustering by Spectrum

My practical work on Basics of AI. This program can clusterize small WAV and MP3 files based on the spectrum of audio they contain. It uses the Fourier transform to create the audio spectrum and the K-means algorithm for clustering.

Usage

  1. Change buffer (window) size if need. Larger numbers make the spectrum more precise, but reduce performance
  2. Select dataset - any directory that contains WAV or MP3 files only
  3. Set the number of clusters to split into
  4. Click "Run"

Example

Items of 1st cluster

cymbal1 cymbal2

Items of 2nd cluster

drum1 drum2

Items of 3rd cluster

vl1 flute vl1 guitar

Items of 4th cluster

piano1 piano3