timmahrt / praatIO

A python library for working with praat, textgrids, time aligned audio transcripts, and audio files. It is primarily used for extracting features from and making manipulations on audio files given hierarchical time-aligned transcriptions (utterance > word > syllable > phone, etc).
MIT License
299 stars 32 forks source link

Montreal Forced Aligner compatability #23

Closed nrgslp closed 3 years ago

nrgslp commented 3 years ago

I have found that useShortForm=False must be set in tg.save() in order for the TextGrids to be readable by the Montreal Forced Aligner. This knowledge may be helpful for other users.

timmahrt commented 3 years ago

Thanks for reporting this issue! It could be a bug in praatio.

I am not familiar with the Montreal Forced Aligner. [Starting with a textgrid that is already readable by the Montreal Forced Aligner] can you try to save a short form text grid in praat and open it in the Montreal Forced Aligner? If it works ok, then praatio has a bug. If it does not work, then the Montreal Forced Aligner only accepts the full length text grids and they should update their code or their documentation.

https://www.fon.hum.uva.nl/praat/manual/TextGrid_file_formats.html Screen Shot 2021-01-15 at 10 20 37 AM

nrgslp commented 3 years ago

Thanks for the response. TGs that were once readable by the MFA are no longer readable after saving as a short text file. I will follow up with the MFA team.

timmahrt commented 3 years ago

Thank you! I'm sorry for the hassle. If there is anything else I can help with, please let me know.

I'll close this issue for now, but if you have any more questions, feel free to reopen it.