Getting Started
Installation
# bash
pip install new-fave
Usage
Current basic usage, for now. If you want speaker demographics included in the data output, see Speaker
Audio + TextGrid
See fave_audio_textgrid
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_audio_textgrid, write_data
= fave_audio_textgrid(
speakers = "speaker1.wav",
audio_path = "speaker2.TextGrid",
textgrid_path ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )
Corpus
See fave_corpus
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_corpus, write_data
= fave_audio_textgrid(
speakers = "corpus/",
corpus_path ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )
Subcorpora
See fave_subcorpora
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_subcorpora, write_data
= fave_subcorpora(
speakers = "project/speakers/*/",
subcorpora_glob ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )