Forced-Alignment-and-Vowel-Extraction / alignedTextGrid

aligned-textgrid links textgrid sequences together
https://forced-alignment-and-vowel-extraction.github.io/alignedTextGrid/
GNU General Public License v3.0
6 stars 1 forks source link

[Feature Request]: Refactor Interval, Point and Tier creation to not require praatio classes #177

Closed JoFrhwld closed 4 months ago

JoFrhwld commented 7 months ago

What feature would you like added?

Right now, to create a SequenceInterval, we need

from aligned_textgrid import SequenceInterval
from praatio.utilities.constants import Interval

interval = SequenceInterval(Interval(0,1,"label"))

SequenceTiers, SequencePointTiers, SequencePoints similarly process just praatio classes.

Instead, we should also allow

from aligned_textgrid import SequenceInterval

interval = SequenceInterval(start = 0, end = 1, label = "label")

What would the use case be for this feature?

This seems necessary for constructing textgrids with fewer imports and knowledge of praatio's API.

Would you like to help add this feature?

Yes, and I will submit a pull request soon.

Code of Conduct

JoFrhwld commented 4 months ago

closed by #191