Praat-textgrids
Praat-textgrids copied to clipboard
Praat textgrid manipulation in Python
I had problem reading praat files, like this: ```txt ... intervals [2520]: xmin = 2088.47546331726 xmax = 2090.514000611356 text = " _K" intervals [2521]: ... ``` Made quick workaround.
- Make it possible to pass a bytes object instead of a string, handy when working with gzipped files - Make the encoding configurable in case of iso-XXXX-1 - Some...
A 'tier_count = tier_count + 1' is missing from this loop: https://github.com/Legisign/Praat-textgrids/blob/58f4ae163ed18c2e23b61badf275e90d90a830aa/textgrids/__init__.py#L250
Hi, Thanks for the module. During use I noticed that `TextGrid._format_long()` is missing a counter increment for IntervalTier items. This pull request adds the increment. Leo
a resolve for [my issue](https://github.com/Legisign/Praat-textgrids/issues/11).
I tried to read a long form TextGrid file by textgrids package, which can be read by Praat 6.3.02 (GUI) successfully, but fail. After `annotation = textgrids.TextGrid('XXX.TextGrid')` was inputed, this...
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) ?
I'm creating a TextGrid object from a file like so `try: grid = textgrids.TextGrid(arg) ` Which works well for smaller files (~300KB), but fails with the following error message for...

When I try to read TextGrid File Using ` grid = textgrids.TextGrid(annot)` it is showing the following error _'utf-8' codec can't decode byte 0xff in position 0: invalid start byte_...