FAVE Aligner module

aligner.py contains the Aligner class and coordinates the interaction of the other modules.

class fave.align.aligner.Aligner(wavfile, trsfile, tgfile, **kwargs)

The Aligner class is the main user entry point to the FAVE library. It handles the interface between all the different modules and automates the process in a way that allows easy use in scripts or larger programs.

align(tempdir='', FADIR='')

Main alignment function

check_against_dictionary()

Interface with TranscriptProcessor to check dictionary entries

check_transcript()

Interface with TranscriptProcessor to check a file

get_duration(FADIR='', PRAATPATH='')

gets the overall duration of a soundfile

merge_textgrids(main_textgrid, new_textgrid, speaker, chunkname_textgrid)

adds the contents of TextGrid new_textgrid to TextGrid main_textgrid

process_style_tier(entries, style_tier=None)

processes entries of style tier

read_transcript()

Interface with TranscriptProcessor to read a file