Praat-textgrids icon indicating copy to clipboard operation
Praat-textgrids copied to clipboard

textgrids.TextGrid() doesn't seem to work for short form TextGrid file

Open chenchenzi opened this issue 3 years ago • 2 comments

textgrids.TextGrid() doesn't seem to work for short form TextGrid file. How to add a parameter to say that it is the short form when we use textgrids.TextGrid(filename) ?

chenchenzi avatar Dec 11 '21 18:12 chenchenzi

I found a fix: The first 3 lines of the file have to be:

File type = "ooTextFile"
Object class = "TextGrid"

<the first number>

if your file follows this header, it should work

yannickfunk avatar May 06 '22 07:05 yannickfunk

I see. So it only works for long format Textgrid. Thanks!

chenchenzi avatar Jul 06 '22 12:07 chenchenzi