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

feature request: getting the intensity/energy contour? #9

Open
leihgajeun opened this issue Mar 4, 2024 · 2 comments
Open

feature request: getting the intensity/energy contour? #9

leihgajeun opened this issue Mar 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@leihgajeun
Copy link

First off, thank you for creating praatSauce! Is it possible to add a function to get the intensity contour (or energy contour? Though I believe the output of the "get energy..." function in praat is not the same as the RMS energy in VoiceSauce...)? This might be helpful for a lot of users who study prosody.

@drfeinberg
Copy link

Hi Folks,
I've been following the repo and thought I'd add my 2 cents in here...

The RMS energy calculation in Voice Sauce does not calculate RMS energy as it advertises, it calculates total energy using window lengths based on the pitch. Ihave made a correction in my voicelab software, which uses parselmouth to access praat from Python. I have spoken with the authors of Voice Sauce, and they agree the equation is wrong, but are done working on the software and won't change it.

Here's a link to the code in my software where you can measure energy using the same pitch-dependent window as voice sauce, but corrected and actually calculates RMS energy: https://github.com/Voice-Lab/VoiceLab/blob/main/voicelab/src/Voicelab/toolkits/Voicelab/MeasureEnergyNode.py

@kirbyj
Copy link
Owner

kirbyj commented Mar 7, 2024

Thanks for the suggestion @leihgajeun and for the pointer to Voicelab @drfeinberg. We'll put this in the TODO as we are thinking about the best way to incorporate new measures like this, as well as how best to access the underlying Praat functions.

@kirbyj kirbyj added the enhancement New feature or request label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants