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

can i save a normal textgrid but not a short textgrid using praatIO #15

Closed dfdjoker closed 4 years ago

dfdjoker commented 4 years ago

Hi,timmahrt: I want to save textgrid using praatio,but I found that it save as a short textgrid.Can I save a normal textgrid?

timmahrt commented 4 years ago

praatIO currently does not have the capacity to save a normal textgrid. It shouldn't be difficult to add. I'm a bit busy at the moment but will try to have it out sometime this week.

timmahrt commented 4 years ago

Hello dfdjoker, I have just released Praatio 3.8.0 which has the ability to save in the Textgrid long file format. By default, it will still save to the short file format.

You can save a long Textgrid file like so:

tg.save(fn, useShortForm=False)

If you have any feedback, please let me know. If you're satisfied, please close the issue. Thanks! Tim

dfdjoker commented 4 years ago

Thank you so much!