Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenchenzi opened this issue Dec 11, 2021 · 2 comments

Comments

@chenchenzi
Copy link

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) ?

@yannickfunk
Copy link

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

@chenchenzi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants