Skip to content

Syuparn/TextGridConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages