LING 520
Introduction to Phonetics
Fall 2006


LAB 1: Using Praat

Introduction


Part I: Using Praat

There are a lot of online Praat tutorials (try google: Praat tutorial), many of them are very good. We recommend the one written by Jean-Philippe Goldman (available at http://www.unige.ch/lettres/linge/ppp/praat_tutorial.pdf). You may start with any tutorial you found good, as long as you can learn how to do the following:

Here are some suggestions on using a head-mounted microphone to make decent-quality recordings directly into your laptop:

Practice:

1. Dwonload Praat from http://www.fon.hum.uva.nl/praat/ , install it on your local computer.

2. Download file try1.wav , open Praat, load try1.wav into Praat by clicking on Read > Read from file ... , and selecting the file "try1.wav" you just downloaded. A highlighted sound object called "try1" will appear in the object window (looks like this).

3. Click on Edit, an edit window will pop up. If no settings of Praat have been changed, the upper part of the window will display the waveform and the pulses of the sound, and the lower part will display the spectrogram, formants, pitch and intensity (looks like this).

4. Click Pulses on the top bar of the edit window, then uncheck Show pulses. The pulses shown in the upper window are now disappeared. Repeat the same procedure for Spectrum (unckeck Show spectrogram), Formant, Pitch, and Intensity. Now your edit window should look like this.

5. Go back to the object window, click on Annotate, then choose To TextGrid…, a small window will pop up. Replace “Mary John bell” on the top line with “word”, and delete “bell” from the bottom line, and then click OK. By doing this, you'll create a TextGrid which has only one interval tier.

6. In the object window, a TextGrid object, also called "try1", will show up and be highlighted. Now press and hold the ‘Ctrl’ key and click the sound object. You will see that both the sound and the TextGrid objects are now selected/highlighted. Click Edit on the right side of the object window, you will see a new edit window like this.

7. Now click on the beginning end of the first word, you will see a vertical cursor shown in the TextGrid window. There is a small circle on the top of the curosr. By clicking on the circle, you'll add one point of an interval in the TextGrid. Now move the mouse to the end of the first word, click, and click the small circle, the second point of the interval is then added. Click on any point between the two cursors, you will see the entire interval becomes yellow. Write the word on the plane of the interval. If you want to move a cursor, just click on it and drag it; to remove a cursor, click on it, then select Boundary > remove from the top bar, or press Alt+Backspace. Congratulations! Now you know how to segment and label using Praat. Be sure to use the “all, in, out, sel’ buttons at the left-bottom corner of the edit window to show the entire file, zoom in, zoom out, and show selected portion. You will need to listen to different portions of sound when you do segmentation. You can do so by clicking on the horizontal bars shown at the bottom of the edit window.

8. Segment and label all the words in try1.wav. After you are done, you should get a window like this.

9. Estimate the SNR of try1.wav. It should be about 60dB.


Part II: Segmentation and word duration

The ability of handling large data sets is crucial to most research in phonetics. You should keep in mind the following ‘rules’ when collecting and processing data:

Problem 1 (1 point):

Answer the following question: Is it a good idea to name files using more than two dots, for example, “S1.002.wav”, in Praat? Why? (hint: Make four sound files (they can be four copies of the same file): S1.002.wav, S1.003.wav, S1_002.wav, S1_003.wav, and load them into Praat, what happened?)

Problem 2 (4 points):

1. Obtain the wav and TextGrid files from ling520@harris.ling.upenn.edu, and save them to your local directory. The passward has been emailed to you. Please keep it safe. If you are working on linux/unix, you can get the files through sftp. If you are working on the windows, please follow these steps to get a free copy of SSH and to get the files using SSH: transfer files with SSH. Each group has a different set of data, so be careful not to work on a wrong data set.

2. The TextGrid files provided to you mark the phrase boundaries of the sentences, as shown here. Load one pair of wav and TextGrid files into Praat at a time, and add word boundaris and labels on the TextGrid. After you are done, save the changes you've made to the TextGrid (Don't rename the file) and move to another pair. You can also use the script label.praat to facilitate your work. The script will automatically load all the wav-TextGrid pairs into Praat, one pair at a time. After you finish one pair and click on "continue", the script will automatically save the current TextGrid and then load another pair into Praat. To run the script, go to Control > Open Praat script..., and open the script file. A script window will show up. You need to change the directory name in the script (see illustration). After you get the directory name right, just click on 'Run' or use Ctrl+R.

3. Download a praat script here, change the directory name in the script to your local directoty where the TextGrid files are placed (see illustration), then run the script. The script will calculate the durations of all the words in the TextGrid files and record the durations in a big log file, word_duration.log, which will be saved in the same directory as your TextGrid files.

4. From word_duration.log calculate the average duration of all the words for each of the 15 categories (the first three letters of the filename define the category of the file): neu, dis, pan, anx, hot, col, des, sad, ela, hap, int, bor, sha, pri, cot. What are the differences on word dutation among these categories? These categories are different emotions. By listening to the sounds, find the emotion type of each category (hint: the filenames tell something).

Turn-in instruction:

1. Upload your TextGrid files and word_duration.log onto harris. There is a directory under lab1_turn-in/ for each group. For example, group 1 should upload the files to lab1_turn-in/group1/.

2. Write a lab report that includes:

3. You may discuss with your partner and others, but you should write the lab report independently. Please send your report in .pdf to my email (jiahong@babel.ling.upenn.edu) by 3:30pm, Sep. 26 (let me know if you need help on generating pdf files).