Parselmouth icon indicating copy to clipboard operation
Parselmouth copied to clipboard

Formant calculation not as accurate as in the Praat software

Open hykilpikonna opened this issue 2 years ago • 2 comments

I tried to use Parselmouth's to_formant_burg(time_step=0.032) to calculate formants, but the returned values on the same audio file are very inaccurate compared to results from the Praat software. What are some potential causes for this difference in accuracy with the same software? Is it possible that Praat is using To Formant (robust) rather than To Formant (burg)?

image

image

hykilpikonna avatar Apr 05 '22 04:04 hykilpikonna

Actually, setting time step to the default 0.01 makes the predictions more accurate.

hykilpikonna avatar Apr 05 '22 06:04 hykilpikonna

Hi @hykilpikonna, that's strange. Parselmouth is using Praat's code, so for the same parameters, it should give the exact same results.

What are some potential causes for this difference in accuracy with the same software?

So somehow, you're using a different parameters, I would hope? You you give me the values/screenshots from the parameters in the settings?

One other way to also compare is to just call "To Formant (burg)" in the main object window. This is the code that Parselmouth should be using, but sometimes the arguments to Praat's interactive Sound editor are slightly different.

Is it possible that Praat is using To Formant (robust) rather than To Formant (burg)?

As far as I can tell, no. It seems that in "Formant > Advance formant settings...", the method "Burg" is selected by default, for me. Is that not the case for you?

YannickJadoul avatar Apr 05 '22 14:04 YannickJadoul

Closing, after almost a year without replies to my questions.

YannickJadoul avatar Feb 24 '23 10:02 YannickJadoul