Skip to content

zhangxincheng/ivectors-kaldi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kaldi-ivectors-for-python

This repository allows to use kaldi to train an i-vector extractor and extract i-vectors through a python interface. Far from perfect as it uses os.system calls.

Installation

To install please run

install.sh

Example:

To run both the training and then extract the i-vector you would

import kaldi_ivector as ivector

M=4
num_gselect=2
ivector_dim=2*7
ivector.train('example_data/example_train.scp','example_data/example_model',M,ivector_dim,num_gselect)
ivectors,keys=ivector.extract('example_data/example_model/extractor', 'example_data/example_test.scp','example_data/ivectors',num_gselect)

About

ivector extractor for a wavfile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published