How to use org.openimaj.ml.gmm to construct speaker models.

85 views Asked by At

I would like to know how I can get GMM speaker model using OpenIMaj library. org.openimaj.ml.gmm.GaussianMixtureModelEM. I have tried following

GaussianMixtureModelEM gmm = new GaussianMixtureModelEM
         (DEFAULT_NUMBER_COMPONENTS,GaussianMixtureModelEM.CovarianceType.Diagonal);

MixtureOfGaussians mixture =  gmm.estimate(data);
boolean convergerd  = gmm.hasConverged();

I get true that GaussianMixtureModelEM has converged, I am lost where to go from here. Any help guidance would be appreciated.

1

There are 1 answers

4
Jon On

Given your comment, then mixture.estimateLogProbability(point) should do what you want (see http://www.openimaj.org/apidocs/org/openimaj/math/statistics/distribution/MixtureOfGaussians.html#estimateLogProbability(double[])).