KY25A_1.TextGrid josef-fruehwald_speaker.TextGrid
Processing a single file
There are a few different ways you can process a single file with fave_recode.
Only input file and scheme provided
First, like the basic usage section did, you can provide it with just a single input file, and a recoding scheme.
fave_recode will save the recoded TextGrid to the same directory as the original TextGrid with _recoded added to the end of the filename.
If there is already a file in the output location, fave_recode will ask you whether or not you want to overwrite it.
Example
bash
ls databash
fave_recode -i data/KY25A_1.TextGrid -s cmu2labov
ls dataKY25A_1.TextGrid KY25A_1_recoded.TextGrid josef-fruehwald_speaker.TextGrid
Providing a recode stem
You can provide fave_recode with a different recode stem to append to the original filename with the -r flag.
fave_recode will save the recoded TextGrid to the same directory as the original TextGrid with the string you provided added to the end of the filename.
Example
bash
ls dataKY25A_1.TextGrid josef-fruehwald_speaker.TextGrid
bash
fave_recode -i data/KY25A_1.TextGrid -s cmu2labov -r _labovcode
ls dataKY25A_1.TextGrid KY25A_1_labovcode.TextGrid josef-fruehwald_speaker.TextGrid
Providing an output filename
You can also provide fave_recode with an output filename with the -o flag.
fave_recode will save the recoded TextGrid to the output location.
If there is already a file in the output location, fave_recode will ask you whether or not you want to overwrite it.
If the output directory doesn’t exist, fave_recode will ask you whether or not you want to create it.
Example
bash
ls dataKY25A_1.TextGrid josef-fruehwald_speaker.TextGrid
bash
fave_recode -i data/KY25A_1.TextGrid -s cmu2labov -o data/recoded.TextGrid
ls dataKY25A_1.TextGrid josef-fruehwald_speaker.TextGrid recoded.TextGrid
Providing an output directory
You can also provide fave_recode with an output directory with -o.
fave_recode will save the recoded TextGrid to the output directory with the recode string appended to the end of the original filename.
If there is already a file in the output location, fave_recode will ask you whether or not you want to overwrite it.
If the output directory doesn’t exist, fave_recode will ask you whether or not you want to create it.
Example
bash
fave_recode -i data/KY25A_1.TextGrid -s cmu2labov -o output
ls outputKY25A_1_recoded.TextGrid