Skip to content

Instantly share code, notes, and snippets.

@lilrex
lilrex / speaker_segmentation.py
Created May 17, 2017 13:11
Speaker Segmentation using BIC agglomerative clustering on MFCC features
import numpy as np
from sklearn import mixture
from sklearn.cluster import KMeans
from sklearn.externals import joblib
init_cluster = 10 # initial number of clusters in KMeans
d = 13 # feature dimension
n_components = 16 # number of Gaussian mixtures in GMM
scale = 200 # number of frames per second