Skip to content

A script that converts TextGrid files to HTK format (lab or Audacity txt)

Notifications You must be signed in to change notification settings

Ksauxion/TextGrid2HTK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TextGrid2HTK

A script that converts TextGrid files to HTK format (lab or Audacity txt)

Requirements


You'll need praat-textgrids to run this script. You can install it by running

pip install praat-textgrids

or

pip install -r requirements.txt

How to use?


This script converts all TextGrid files in current directory and subdirectories to HTK format. You can run it by using

python TextGrid2HTK.py [-h] [-t [TIER]] [-f [FORMAT]] [-c CONVERTER] [-cl] [-l]

where -h is help.__ -t or --tieris tier you want to export. Default is phones.
-f or --formatis export format (lab or txt). Default is lab.
-c or --converteris converter. There's one built-in called sil_and_br, which converts pauses and breaths to HTK format. You can specify the converter file, which is text document where entries and its replacements are separated by comma. You can see and example in converter_example.txt. Default is None.
-cl or --cleanis cleaner. It cleans numbers from source entries. Default is False.
-l or --lowis lower capitalization function. Default is False.

About

A script that converts TextGrid files to HTK format (lab or Audacity txt)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages