fave_audio_textgrid

fave_audio_textgrid(audio_path, textgrid_path, speakers=0, include_overlaps=True, recode_rules=None, labelset_parser=None, point_heuristic=None, ft_config='default', fave_aligned=False)

Process a single audio/textgrid pair.

Parameters

Name Type Description Default
audio_path str | Path Path to an audio file required
textgrid_path str | Path Path to a textgrid required
speakers int | list[int] | str | Path | optional Which speaker(s) to produce data for. Can be a numeric index, or a path to a speaker file, or “all” 0
include_overlaps bool Whether or not to include vowels that are overlapped with speech from other tiers. Defaults to True. True
recode_rules str | None Either a string naming built-in set of recode rules, or path to a custom ruleset. Defaults to None. None
labelset_parser str | None Either a string naming a built-in labelset parser, or a path to a custom parser definition. Defaults to None. None
point_heuristic str | None Either a string naming a built in point heuristic, or a path to a custom heuristic definition. Defaults to None. None
ft_config str | None Either a string naming a built-in fasttrack config file, or a path to a custom config file. Defaults to “default”. 'default'
fave_aligned bool Were the textgrids generated by classic FAVE align? Defaults to False. False

Returns

Type Description
SpeakerCollection A new_fave.SpeakerCollection