Kaldi-alignments-matlab

https://github.com/MatsRooth/Kaldi-alignments-matlab is a Matlab program that displays Kaldi alignments like the ones we looked at in class yesterday. Install it from GitHub. You also need to install the voicebox toolbox and put it on the Matlab path. Open display_switch.m in the editor, run it from the GUI (with the default argument that is supplied) and accept the suggestion to switch the Matlab directory. Data from the Librispeech corpus are read from sub-directories that are included with the distribution.

The above worked for me on a Mac different from the one where I developed it. Try it, it’s a good way of checking qualitatively how well the alignment is working. We want to include code in the project directories on Kay that generates data files like the ones in the matlab-mat and matlab-dat sub-directories.

3 thoughts on “Kaldi-alignments-matlab

  1. Jacob Collard

    I’m getting the following error, which seems to be coming from the voicebox toolbox. I’m using Matlab 2016b on Linux.

    Undefined function or variable ‘hanning’.

    Error in fxrapt (line 97)
    rmswin=hanning(krms).^2;

    Error in display_ali3/utterance_data (line 85)
    [fx,tt]=fxrapt(w,fs);

    Error in display_ali3 (line 52)
    utterance_data(ui);

    Error in display_switch (line 72)
    display_ali3(datfile,framec,audiodir);

      1. Jacob Collard

        I think this is an error in the latest version of voicebox. I changed ‘hanning’ to ‘hann’ and installed the Signal Processing add-on and it worked.

Leave a Reply