timmahrt / praatIO

A python library for working with praat, textgrids, time aligned audio transcripts, and audio files. It is primarily used for extracting features from and making manipulations on audio files given hierarchical time-aligned transcriptions (utterance > word > syllable > phone, etc).
MIT License
299 stars 32 forks source link

feat: add dejitter method #50

Closed timmahrt closed 1 year ago

timmahrt commented 1 year ago

While working on a a bugfix for praatio_scripts.alignBoundariesAcrossTiers I thought it might be good to incorporate the new code directly into the tiers themselves.


I considered making an autodejitter--so having a tier use its own timepoints as the reference points, but after removing values within the tolerance range. I could maybe think of a situation for interval tiers but not point tiers. For the moment, I've decided not to implement anything.

codecov[bot] commented 1 year ago

Codecov Report

Base: 77.21% // Head: 77.29% // Increases project coverage by +0.07% :tada:

Coverage data is based on head (7bc1756) compared to base (46786f0). Patch coverage: 92.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## praatio_v6.1 #50 +/- ## ================================================ + Coverage 77.21% 77.29% +0.07% ================================================ Files 21 21 Lines 2638 2660 +22 ================================================ + Hits 2037 2056 +19 - Misses 601 604 +3 ``` | [Impacted Files](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim) | Coverage Δ | | |---|---|---| | [praatio/data\_classes/klattgrid.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby9kYXRhX2NsYXNzZXMva2xhdHRncmlkLnB5) | `85.36% <50.00%> (-0.80%)` | :arrow_down: | | [praatio/data\_classes/textgrid\_tier.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby9kYXRhX2NsYXNzZXMvdGV4dGdyaWRfdGllci5weQ==) | `98.94% <80.00%> (-1.06%)` | :arrow_down: | | [praatio/data\_classes/interval\_tier.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby9kYXRhX2NsYXNzZXMvaW50ZXJ2YWxfdGllci5weQ==) | `98.86% <100.00%> (+0.08%)` | :arrow_up: | | [praatio/data\_classes/point\_tier.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby9kYXRhX2NsYXNzZXMvcG9pbnRfdGllci5weQ==) | `100.00% <100.00%> (ø)` | | | [praatio/praatio\_scripts.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby9wcmFhdGlvX3NjcmlwdHMucHk=) | `16.92% <100.00%> (-9.45%)` | :arrow_down: | | [praatio/utilities/my\_math.py](https://codecov.io/gh/timmahrt/praatIO/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim#diff-cHJhYXRpby91dGlsaXRpZXMvbXlfbWF0aC5weQ==) | `62.50% <100.00%> (+0.87%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tim)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.