Skip to content

[Feature Request]: TextGridGroup for splitting and merging textgrids #167

@chrisbrickhouse

Description

@chrisbrickhouse

What feature would you like added?

Let's say you have an audio file with two speakers and for some reason you need to split the audio into separate files for each speaker. So a folder like:

ParentFileName_Speaker01_part1.wav
ParentFileName_Speaker01_part2.wav
ParentFileName_Speaker02_part1.wav

The textgrids can be used to make these splits, but you also need to make textgrids for the new audio files. These new sub-grids lose their precedence relations across files. Depending on the split scheme (say, split by word rather than turn) that can be a negative. Another similar context could be if there is one aligned textgrid for word and phones, and a second for turns and affective coding. Having those hierarchical relations preserved across the files would be useful.

We could implement this as storing references across instances, so two Words, A and B where A.fol == B. From a structural standpoint, we could say that an alignedTextGrid can contain TierGroups or other text grids; a TextGridGroup

What would the use case be for this feature?

Splitting and merging text grids are what motivated me to propose this, but I could imagine it being useful for workflows where you want to keep phrase-level transcripts or coding out of the phonetic alignment file.

Would you like to help add this feature?

Yes, and I will submit a pull request soon.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions