Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.13 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.13 KB

TextGridConverter

convert .lab files to .TextGrid files, which can be used in Praat

Description

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.

Features

  • convert all .lab files in a directory (recursively)
  • method to change segmantation unit (phonemes to moras)

Requirement

  • Python 3.6 or more

Usage

  1. To convert .lab files in directory dir/to/path:
python convert_label.py dir/to/path
  1. Choose weather separate unit (phoneme or mora) is used
change segmentation unit to mora? (default:phoneme) y/n:
  1. This converts all .lab files in dir/to/path to .TextGrid files (recursively)

Installation

$ git clone https://github.com/Syuparn/TextGridConverter

Anything Else

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.

Author

syuparn

License

MIT