SkillAgentSearch skills...

TextGridConverter

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

Install / Use

/learn @Syuparn/TextGridConverter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1y ago
Forks2

Languages

Python

Security Score

75/100

Audited on Jul 3, 2024

No findings