bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.19k stars 166 forks source link

Support for timing and TextGrid output #51

Closed chen-deepdub closed 4 years ago

chen-deepdub commented 4 years ago

Hi, Thank you for this great tool!

I wonder if you plan on supporting other output types like TextGrid that allow synchronization of phoneme and actual time. https://www.fon.hum.uva.nl/praat/manual/TextGrid_file_formats.html

mmmaat commented 4 years ago

Hi, this is actually not planned. It would be (theoretically) possible to extract time information from the espeak and festival backends but I never tried.

Moverover TextGrid support is beyond the scope of this tool. Assuming timing will be implemented some day it would be in a low level format closer to the actual text representation. You have great libs to deal with TextGrid (e.g. https://github.com/kylebgorman/textgrid/blob/master/textgrid/textgrid.py)

chen-deepdub commented 4 years ago

Thank you for your quick answer!

My question was mainly about incorporating time information, TextGrid was brought up as a reference object that handles time intervals and other information nicely.

mmmaat commented 4 years ago

If you want to implement it by yourself and submit a pull request you are more than welcome :)