Susan's Place Transgender Resources

Community Conversation => Transitioning => Voice Therapy and Surgery => Topic started by: Jennygirl on October 04, 2013, 02:20:45 PM

Title: TUTORIAL: Analyzing pitch with Praat
Post by: Jennygirl on October 04, 2013, 02:20:45 PM
A lot of people have been expressing interest in using Praat to analyze vocal pitch and resonance, so I though it might be helpful to do a little tutorial... Maybe this will help with getting through some of that initial confusion :)

As a disclaimer- I have limited knowledge of this program, so please share any tips or shortcuts to these steps or other helpful features / methods. I am still learning, too! Anyway, here we go! Also, I am doing this on a Mac... so, apologies if it is slightly different for Windows.




How to use Praat to find your fundamental frequency:

1. Download and install Praat (these links may become dead, so just google search "download praat mac" or windows)
mac:
http://www.fon.hum.uva.nl/praat/download_mac.html
win:
http://www.fon.hum.uva.nl/praat/download_win.html

2. Open it, and locate the "Praat Objects" window

3. Click the menu "New" at the top left, then select "Record mono Sound" (this is Apple+R on a mac, I'm guessing for "record")

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FGMeNlNB.png&hash=b3aa33b77168f10e4b091338a8adfdc61afa664b)

4. Hit "Record", then record your voice, then click "Stop"

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fhtworcz.png&hash=3d7fda81c293bc8c7a42c09032637fb7fbd48e7f)

5. Save the recording to the Praat Objects window by hitting "Save to list & Close" at the bottom right

6. Re-locate the "Praat Objects" window and make sure the last item in the list is selected

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJpoyHEu.png&hash=e33af88034de210698dadde4535cffb07559217e)

7. Click "View & Edit". This will open your recording into the window where you can see your pitch on a blue graph below.

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FIuZSboz.png&hash=7e0417eb2e5548ac1db19b0621cb2dc003c512a9)

8. In the new window click the "View" menu, then select "Show Analyses"

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F3mII1oB.png&hash=b0d0f81dede927a9124e36fe34e0c5ba90e90550)

9. This is where you can tell Praat what and what not to show. I have mine showing "Show Spectrogram" and "Show Pitch". Also, set "longest analysis" to 300.

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FfbKesBt.png&hash=aefbb5a7d666cfa3abf6a878eba97ab473a332a7)

10. Click ok and locate the blue graph in the window you were in previously. That is your pitch.

11. Click and drag over the areas on the blue graph to analyze either words or the whole thing if you want. The average pitch for the selected section appears on the right.

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJrnELXD.png&hash=b150bbfb1543a1eb640c59cc9420cb57f8b9fda8)

Resonance analysis: coming soon!




I hope this helps! Let me know how it works or doesn't work for you and I'll try to keep this tut updated :)

Happy voice testing, and may all of your voices sound undeniably identified!
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: sarahb on October 04, 2013, 03:23:50 PM
I tried using Praat before and found it very confusing. This has totally helped! Now I can get more accurate measurements of my frequency. So very helpful, thank you :)
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Robin Mack on October 04, 2013, 03:26:40 PM
You did it!!!  Thank you, o thank you!

*happy dance*

=)
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Adam (birkin) on October 04, 2013, 03:47:05 PM
oooh, this looks like something I want to try out.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: sarahb on October 04, 2013, 03:54:59 PM
One thing I've noticed is that here and there it will put the blue line way high, like in the 4000+Hz range. I'm assuming the blue line tracks the average frequency at any given point. I'm wondering if you've seen that as well Jenny? When I highlight an area with one of those skewed portions it seems to skew the average frequency (increasing it, obviously). When I just highlight areas around it the results seem to average out better.

I did notice that at least two of the times it seemed to be right where an "S" sound was, so I'm thinking that it was catching the high pitch of the "S". However, that wasn't the case in all of the areas. In any case, I'm having a blast using this program now.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Carrie Liz on October 04, 2013, 04:02:06 PM
I'm still really confused about the resonance thing.

When I click "show spectral power," it gives me a scientific-notation number like 6.123692172698402e-006 Pa2/Hz, then says "at time = 11 seconds and frequency = 3500 Hz"

I assumed that this Hz number was what you were taking about, but upon further analysis, the Hz number changes completely independent of the graph itself, and is just a representation of where on the vertical axis my cursor is. Like, if my cursor point is near the top of the screen, regardless of what the graph says, the number there would be 5000 Hz. And if it's at the very bottom, again completely independent of the graph itself, it would say 0 Hz.

So, um, am I doing something wrong?
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: sarahb on October 04, 2013, 04:47:09 PM
Quote from: Carrie Liz on October 04, 2013, 04:02:06 PM
I'm still really confused about the resonance thing.

When I click "show spectral power," it gives me a scientific-notation number like 6.123692172698402e-006 Pa2/Hz, then says "at time = 11 seconds and frequency = 3500 Hz"

I assumed that this Hz number was what you were taking about, but upon further analysis, the Hz number changes completely independent of the graph itself, and is just a representation of where on the vertical axis my cursor is. Like, if my cursor point is near the top of the screen, regardless of what the graph says, the number there would be 5000 Hz. And if it's at the very bottom, again completely independent of the graph itself, it would say 0 Hz.

So, um, am I doing something wrong?

I see the same thing.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Ltl89 on October 04, 2013, 04:52:22 PM
Thanks for the tutorial Jenny.  I've been working on my voice, but I've yet to record myself.  I'd hate to hear what the playback sounds like.  Pus, I do it in my car (for the most part). However, I suppose it's part of the process, so I should give it a try.  Looks like a good and confusing program, lol.  Do you know if it runs on linux?  And if not, is it configurable with Wine? 
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: anjaq on October 04, 2013, 05:22:59 PM
Thanks a lot! Can you explain the part on resonance a bit more? I tried that but it seems the numbers do not only depend on the timepoint (x-axis) but also on where you click in the spectrum on the y-axis. So iWhere do you have to click to get these numbers? So if I click on the blue line, it is like 500 or so. By the way in my settings - I dont know if I accidentially changed something, that spectral power number appears as a red number on the left if you click in the spectrum.

To zoom in fast by the way you can mark with the mouse and then press CTL-N to get the part of the recording you want to analyze.

Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: KatelynRain on October 04, 2013, 07:00:26 PM
Wow!  I didn't even know this program existed!! My speech therapist mentions that I could stop his speech workshop at Ithaca college to have my voice measured, but with this I could check for myself!!  So cool! Thanks for posting!!!!
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Aina on October 04, 2013, 10:01:45 PM
This is just what I needed Jenny! Your are awesome girl!

So my pitch seems to be around 240-260 hz, which Is good.

But the resonance part is the real nice part, it seems I am just below the female mark with an average 2600-2700 guess that is where I need to improve!

Then again I am just about getting over a cold...got overly excited seeing this tutorial going have to try again when I am fully recovered.

-hugs-  :)
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 04, 2013, 11:45:30 PM
I am looking into the resonance analysis. The way I was doing it is definitely not proper!

I've been looking into it and I think I've found it... You can do it one of two ways: either by taking a spectral slice and seeing where the harmonics are strongest, or by displaying formants.

When I do figure it out, I'll update the original post!

I'm glad that many are already finding this useful to analyze pitch! It's been an incredible help to me, and I'm glad to see it helping others as well! Praat is the best! I really wish there was a mobile version so I could test on the go- I'm very frequently wishing I could know my pitch throughout the day by seeing it on a graph instead of a tuner that bounces all over the place.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 05, 2013, 03:45:27 AM
Okay so in my research I stumbled upon an informative PDF (http://halshs.archives-ouvertes.fr/docs/00/76/48/11/PDF/Article_Pepiot_RJC_2012_-_Pre-Print.pdf) detailing a study on American/French speakers' vocal resonances. Luckily they also differentiate between M/F voices.

Within the article, I found a chart which shows the resonant harmonics or "formants" that make up each vowel sound. What we are looking for is the third formant, or "F3".

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKhPPqTL.png&hash=d57f61c265650c811442ffcecc345c36d2389e1d)

In this chart, male F3 falls in between ~2,250hz and ~2,900hz depending on the vowel. Female F3 on the other hand falls anywhere from ~2,600hz to ~3450hz. My speech therapist told me something similar to that with males at 2k-2.5k and females from 3k-3.5k.

F3's are easy to find in Praat. Using the same selection method as with pitch (by dragging over an area), you can select the "Formant" menu and click "Get third formant". You can select all and get an average of the whole thing, or you could check your vowels individually by selecting just a little part and comparing it to the chart above.

In order to be able to "Get third formant", formants need to be shown in the graph. Select the "Formant" menu and click "Show formants"
(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FEsqUVPU.png&hash=6f781e5f4f9872286dd28f45a56a0d7c2c4b644b)

Then after you've selected an area to analyze:
(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fgv6hVC1.png&hash=b902f8edf17f96e189ff92c7dd8a6f48a138354c)

And it gives you the average F3 result (mine was 2,933.3hz in this example)
(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FhZ4r1bY.png&hash=8e52fa0b4ea001ba5c48c4e757e5374fb5f19191)

I'll be editing the original post with the newness- to keep things concise :)

Also if anyone has any scientifics to add, please do. I am no expert on this stuff, but I'd love to be taken to school!
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 05, 2013, 04:58:19 AM
I'm finding that I'm getting some inconsistent measurements when analyzing the F3 of a clip in its entirety using these default settings. It only really seems to work where the first 3 formants are clearly formed within the short duration of a single vowel sound. Sometimes they cross over and/or disappear altogether as speech progresses.

This seems to end up making the analysis think that F4 is actually F3.

I was analyzing some deep chested sounding male voices pulled from random youtube videos and getting close to 3,000hz F3's... which should be out of range for male voice. So, something is wrong with that.

When I just selected parts where the first 3 formants were very clear, I kept getting in-range results! So stick to short selections for F3 checking for now until me or someone else figures this out for sure :)
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Carrie Liz on October 05, 2013, 08:59:07 AM
Cool beans, Jenny! Thanks for doing all of this research for us!
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: anjaq on October 05, 2013, 03:05:43 PM
Ok. I get about 2800-3000 in that F3 if I use it on small sections (Guess thats androgynous again). It shows these red dotted lines, I try to get parts that have them rather straight, usually those are really short bits only though. I think one has to set the range setting in "pitch settings" to 1500 or so to enable the F3 line to show in the spectrum picture.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 07, 2013, 05:09:08 PM
For those into the nerdy sorta stuff...

http://clas.mq.edu.au/acoustics/speech_spectra/fft_lpc_settings.html

This page talks some about differences with m/f formants. It's basically the explanation on how a program like Praat works :)

You can do all sorts of neat things with it. Formants seem to be the key.

F0 - fundamental frequency (or pitch)
F1 - first formant (used to find vowel)
F2 - second formant (used to find vowel)
F3 - third formant (used in finding vocal tract length, or what we call resonance)
F4
F5
F6
and so on, used for finding F0


Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Ltl89 on October 07, 2013, 05:29:39 PM
This looks very confusing, so I appreciate you doing everything you can to help the computer illiterate like myself.  Despite the common trans-employment trend, not all of us are computer wizes, lol.  I'll give it a shot once I feel less overwhelmed.   
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: vlmitchell on October 08, 2013, 12:47:24 PM
Thanks for doing this! I'm lazy so, I really didn't want to, per se. :-P
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: vlmitchell on October 08, 2013, 02:00:27 PM
Quote from: learningtolive on October 07, 2013, 05:29:39 PM
This looks very confusing, so I appreciate you doing everything you can to help the computer illiterate like myself.  Despite the common trans-employment trend, not all of us are computer wizes, lol.  I'll give it a shot once I feel less overwhelmed.

I can make a video tutorial for you later, if you're interested?
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: vlmitchell on October 08, 2013, 02:01:53 PM
For those of you who want to actually measure this according to common practice, here's a link to a phonetics course as USC that uses Praat.

http://sail.usc.edu/~lgoldste/General_Phonetics/Week10/Formant_Analysis/index.html

Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 08, 2013, 05:56:21 PM
That's a great link! Thanks for posting it!

Yeah the formants do only seem to behave properly with ideal condidions. There is so much variance otherwise.

Super hard to just test for resonance given a regular clip of talking.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: vlmitchell on October 08, 2013, 09:18:15 PM
It takes a bit of practice to find the ideal points for the measurement but everything goes pretty smoothly once you get the hang of it. I'll post the bits that I can help with in the video... as soon as I get to it.
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: anjaq on October 09, 2013, 01:42:39 AM
hmm - I tried recording some vocals and analyze them - I got pitch about same, but when looking at the f3, I get 2700 for a, but 2900 for e and 31oo for i. So is that regular that vocals have different f3?
Those articles are very nerdy, I dont think I got them ;) - But I guess they support the thing about looking at the f3 and how to measure it for resonance. I think it did not give ranges for M and F, but Jenny posted them before from memory - like <2600 for M and >3000 for F with a gender neutral part in the middle (where I obviously am - again)
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: Jennygirl on October 09, 2013, 03:26:27 AM
Quote from: anjaq on October 09, 2013, 01:42:39 AM
hmm - I tried recording some vocals and analyze them - I got pitch about same, but when looking at the f3, I get 2700 for a, but 2900 for e and 31oo for i. So is that regular that vocals have different f3?

Quote from: Jennygirl on October 05, 2013, 03:45:27 AM
(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKhPPqTL.png&hash=d57f61c265650c811442ffcecc345c36d2389e1d)
In this chart, male F3 falls in between ~2,250hz and ~2,900hz depending on the vowel. Female F3 on the other hand falls anywhere from ~2,600hz to ~3450hz. My speech therapist told me something similar to that with males at 2k-2.5k and females from 3k-3.5k.

Each individual chart corresponds to a different vowel sound. So if you test "i", the first chart could give you something to test against. Because yes, F3 varies depending on the vowel sound. Think of how your mouth/throat changes to form sounds.. sometimes it's getting smaller in certain areas and opening up in others, and that's how you form a vowel.

If you say "i" as in "ee", your tongue comes up in the back of your mouth which reduces the amount of airspace...  That gives it a slightly higher resonance than other vowels by default.

Seems better to test specific vowels instead of just getting the average F3 for an entire passage.

And I'm definitely curious to see some more statistics on female F3's. I will try to hunt them down, but if anyone has clues it is all appreciated!
Title: Re: TUTORIAL: Analyzing pitch & resonance with Praat
Post by: LizMarie on November 23, 2013, 11:42:48 AM
This is a great tutorial! Can it be stickied? Or maybe somehow incorporated into the wiki? How does that work anyway?
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: Delsorou on October 22, 2014, 12:14:24 AM
Not sure if this can be considered necroposting if it's a sticky, but this caught my interest so I decided to download the program and give it a shot.

With absolutely no warm up, I captured a sample of middle C with the "ahh" vowel sound.  I was trying to be on the quiet side and I didn't really warm up first so it sounded awful, but it worked well enough.  The pictured sample gave an average f3 of ~3262.35.  If I am browsing the above correctly, this is good?

(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FR42fYCW.png&hash=6cc0f277ce835a7fe7131e7ab1db4cd4d0deb28b)
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: Jennygirl on October 23, 2014, 04:16:16 AM
Hi Delsorou!

No, you don't have to worry about necropost on this one.

Anyway, your question makes me wonder. I kinda want to go back for a refresher from that voice therapist! But yes based on the rudimentary explanation she gave me, that would be correct I think. 3262hz seems good to me.

Maybe someone who has more experience can chime in. I still think the more subjective approach is best when it comes to resonance.. I.e. you could post a sample in the does my voice pass thread and get some feedback.

Best wishes to you :)
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: Ellie_L on October 25, 2014, 04:11:04 PM
Thanks for the tutorials Jenny :)

The formant portion is really helpful for narrowing down what works and what doesn't once you listen to yourself and figure out the sound you hit.

The formant/resonance is odd though as you mentioned before. I tend to hit the same resonance on the vowels when I tested.
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: TSJasmine on November 23, 2014, 02:44:19 PM
Awesome! Thank you so much n__n
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: Jessika on December 02, 2014, 02:10:30 PM
My normal speaking voice (I did the Rainbow Passage) was at 75Hz. I did it again and tried to raise my voice a little and it showed 100Hz.

Now I'm sad.  :(
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: anjaq on December 02, 2014, 03:21:59 PM
I wonder how accurate that Formant reading is. We did a bit of praat analysis on each others and our own voice recordings in the susans chatroom on the weekend and there were some voices that had a very high number of T3 , like 3200, but they did have a sound that felt like it was not quite there yet, while others had 2600 or 2800 and sounded really good... So maybe it is a bit of a rough measurement and if it is below 2500 it really is not that good but above that it depends? On what? . hmmm


Something else I noticed - how to work around that, would be a question. If I read or speak something and analyze it in praat for average pitch, it highly depends on me speaking either more monotonous or with more intonation and melody to the voice. Just speaking more melodious will increase the average pitch by 30 or 50 Hz at times. I thus try to find parts of the recording where I say "errrr" or "hmmmm" or end words with a vowel and try to find the more common pitches or the lower pitches to get an idea of the "baseline". Does that make sense? Otherwise I guess just adding melody to my voice would bring it from 120-130 Hz of my more relaxed monotonous voice into 180Hz range which is in the female range - but it still has these low drops which make people notice something is at odds.
So which parts of the recording is good to analyze - the overall average or only some parts of it?

EDIT: Here a praat image of what i mean. Same text, same base pitch level and level or relaxation but first part of the recording was not emphasizing on voice melody and the second part was really using voice melody as it probably should be. It made a 50 Hz difference!
(https://www.susans.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FpJw1JY3.png&hash=a59c06cd9f309eae618878ab0d84bcd4072db734)



Thanks
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: gentlebreeze on December 30, 2015, 12:41:51 AM
PRAAT is good for measuring an input file, but I would recommend GRAM if you need a real time visual aid for pitch etc, during practice.
GB
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: anjaq on January 02, 2016, 10:14:19 AM
Yes indeed, Praat is more a very powerful tool for analyzing recordings while GRAM (Or rather "Spectro-GRAM", I think) is great for real time analysis. It is similar to "Overtone Analyzer".
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: Denjin on April 29, 2016, 12:44:51 PM
Does the 'Pitch Range' setting in Pitch Settings help for ignoring the weird recording artefacts?  Even with my studio mic, every recording has the lines that go all the way to the top and bottom when looking at the pitch.
Title: Re: TUTORIAL: Analyzing pitch with Praat
Post by: DawnOday on April 29, 2016, 01:03:24 PM
If you're out and about and need to check your pitch before an interview, date. Try " DaTuner light"  on your mobile. It doesn't record but it does give real time analysis.