YannickJadoul / Parselmouth

Praat in Python, the Pythonic way
https://parselmouth.readthedocs.io/
GNU General Public License v3.0
1.05k stars 114 forks source link

Extracting amplitude envelope #120

Open sarkadava opened 5 months ago

sarkadava commented 5 months ago

Is there a way how to implement parselmouth to script for extracting amplitude envelope with use of Hilbert and Hanning window? I have working script in R but I encounter issues implementing it into Python.

YannickJadoul commented 5 months ago

@sarkadava, do you about a way to do it with Praat? Cause Parselmouth provides the Python interface to Praat, but I do not know everything that Praat can do.

And do you have some more details? How do you do it in R? Does it work with the Hilbert transform? Python just has it in the SciPy library: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.hilbert.html Or I also found these resources: https://www.youtube.com/watch?v=qp1G3a2g8r0 (with this and this Praat script) and https://www.zora.uzh.ch/id/eprint/127258/1/HeDellwo_Interspeech2016.PDF. If you want to use an existing Praat script from Python, Parselmouth do that, and I an help with that if necessary.