convert .lab files to .TextGrid files, which can be used in Praat
TextGridConverter converts .lab files generated by Julius segmentation kit to .TextGrid files, which can be used in Praat. With this code and Julius segmentation kit, you can get phonetic labels of .wav files for Praat automatically.
- convert all .lab files in a directory (recursively)
- method to change segmantation unit (phonemes to moras)
- Python 3.6 or more
- To convert .lab files in directory dir/to/path:
python convert_label.py dir/to/path
- Choose weather separate unit (phoneme or mora) is used
change segmentation unit to mora? (default:phoneme) y/n:
- This converts all .lab files in dir/to/path to .TextGrid files (recursively)
$ git clone https://github.com/Syuparn/TextGridConverter
Before using Julius segmentation kit, you should resample .wav files to 16kHz. convertwav_to_16khz.praat will help you to resample. This converts all wav files in a directory.
syuparn