Praat Tutorial. Pauline Welby and Kiwako Ito The Ohio State University. welby,ito@ling.ohio-state.edu. January 13, 2002



Similar documents
Setting up a text grid in Praat source: English in the Pacific Northwest Research Study Protocol (Wassink)

The use of Praat in corpus research

Drawing a histogram using Excel

Task Force on Technology / EXCEL

Merging Labels, Letters, and Envelopes Word 2013

Audacity Sound Editing Software

A Short Introduction to Transcribing with ELAN. Ingrid Rosenfelder Linguistics Lab University of Pennsylvania

Adobe Dreamweaver CC 14 Tutorial

How to Get Images From Your Camera on to Your Computer

Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.)

Introduction to Microsoft Access 2003

Making TIFF and EPS files from Drawing, Word Processing, PowerPoint and Graphing Programs

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Computer Basics: Tackling the mouse, keyboard, and using Windows

Outlook 2003 User Guide. April 15, 2004

Creating and Using Forms in SharePoint

Using Audacity to Podcast: University Classroom Version Dr. Marshall Jones Riley College of Education, Winthrop University

Joomla! 2.5.x Training Manual

Getting Started With SPSS

Tutorial. Part One -----Class1, 02/05/2015

LEARNING RESOURCE CENTRE. Guide to Microsoft Office Online and One Drive

Getting Started Guide

Adobe Illustrator CS5 Part 1: Introduction to Illustrator

Microsoft Access Basics

GETTING STARTED TABLE OF CONTENTS

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Microsoft Outlook 2007 Calendar Features

Microsoft Office & Lync Tech Tips

Making a Web Page with Microsoft Publisher 2003

Microsoft Access 2010 Part 1: Introduction to Access

Creating Fill-able Forms using Acrobat 8.0: Part 1

If you know exactly how you want your business forms to look and don t mind detail

DataPA OpenAnalytics End User Training

Dreamweaver Tutorials Creating a Web Contact Form

Apple Mac Fundamentals: A Tutorial. Updated 24/4/2013 By Mac Thing enquiries@macthing.co.uk Table of Contents:

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

Importing and Exporting With SPSS for Windows 17 TUT 117

Getting Started with Excel Table of Contents

SPSS Workbook 1 Data Entry : Questionnaire Data

LogMeIn Network Console Version 8 Getting Started Guide

PE Content and Methods Create a Website Portfolio using MS Word

BD CellQuest Pro Software Analysis Tutorial

Microsoft Word 2013 Tutorial

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

KaleidaGraph Quick Start Guide

MICROSOFT WORD TUTORIAL

Creating a Poster in PowerPoint A. Set Up Your Poster

Why Use OneNote? Creating a New Notebook

Dreamweaver and Fireworks MX Integration Brian Hogan

SURPASS HOSTING SERVICE GETTING STARTED AND OPERATIONS GUIDE

Steps to Create a Database

This guide provides step by step instructions for using the IMF elibrary Data - My Data area. In this guide, you ll learn how to:

Working with the new enudge responsive styles

Using Microsoft Word. Working With Objects

Programming in Access VBA

Frequently Asked Questions Mindful Schools Online Courses. Logging In Navigation s & Forums Tracking My Work Files...

To: MesoSpace team Subject: ELAN - a test drive version 3 From: Jürgen (v1), with additions by Ashlee Shinn (v2-v3) Date: 9/19/2009

LESSON 7: IMPORTING AND VECTORIZING A BITMAP IMAGE

Intro to Excel spreadsheets

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Text Basics. Introduction

PowerPoint 2007: Basics Learning Guide

BRIC VPN Setup Instructions

Praat Scripting for dummies

Hypercosm. Studio.

Microsoft Access 2010 Overview of Basics

AppShore Premium Edition Campaigns How to Guide. Release 2.1

2013 Getting Started Guide

Adding A Student Course Survey Link For Fully Online Courses Into A Canvas Course

Excel 2007 Basic knowledge

Microsoft Office Access 2007 which I refer to as Access throughout this book

GoodReader User Guide. Version 1.0 GoodReader version

Version 4.1 USER S MANUAL Technical Support (800)

Teacher References archived classes and resources

Interactive Voting System. IVS-Basic IVS-Professional 4.4

If you know exactly how you want your business forms to look and don t mind

How To Use Spss

Microsoft Word Quick Reference Guide. Union Institute & University

Flash MX Image Animation

How to Use Gmail. 1. Using your computer s Internet browser direct yourself to the Gmail website:

Universal Simple Control, USC-1

Guitarists or other musicians transcribing a solo into tablature or music notation.

Creating a Poster Presentation using PowerPoint

Google Docs Basics Website:

LEARNING RESOURCE CENTRE GUIDE TO OFFICE 365

CNC Transfer. Operating Manual

File Management Windows

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

Appendix A How to create a data-sharing lab

Course Exercises for the Content Management System. Grazyna Whalley, Laurence Cornford June 2014 AP-CMS2.0. University of Sheffield

Excel 2003 Tutorial I

Manual. OIRE Escuela de Profesiones de la Salud. Power Point 2007

Adobe Acrobat 6.0 Professional

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version

Adding Audio to a Presenter File

Intellect Platform - Tables and Templates Basic Document Management System - A101

User Tutorial on Changing Frame Size, Window Size, and Screen Resolution for The Original Version of The Cancer-Rates.Info/NJ Application

CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS

How To Understand How To Use A Computer On A Macintosh (Apple) Computer With A Mouse And Mouse (Apple Macintosh)

Transcription:

Praat Tutorial Pauline Welby and Kiwako Ito The Ohio State University welby,ito@ling.ohio-state.edu January 13, 2002 1 What is Praat and how do I get it? Praat is a program for doing phonetic analyses and sound manipulations (Boersma and Weenink (1992 2001)). It is available for many different platforms (Windows, Macintosh, Unix, Linux) and can be downloaded (for free) from www.praat.org. The source code is also available. The site also has a link to the Praat users group. 2 Starting Praat Unix or Linux: type praat & (The & keeps the window open for you.) Windows or Mac: click on the icon. You will see two windows, shown in Figure 3, the Object window and the picture window. You can close the picture window if you are not going to be making figures immediately. 3 Reading in a file Click on the various headings in the Object window (Control, New, Read (Write is not active yet)) to become familiar with the options underneath them. Different types of files are opened in different ways. To open: 1. One of the following: Sound files (.wav,.aiff files etc.).textgrid files (label files).formant files.spectrogram files and some others 1

Figure 1: LEFT: Objects window. RIGHT: Picture window Read Read from file... Then navigate through your folders to find the appropriate file. This puts a new object in your Object window. 2. A long sound file: Read Open long sound file... A long sound file is a.wav,.aiff file that is too large to be opened as a sound file. Whether is large enough to count as a long sound file depends on duration of file, sampling rate, number of channels, etc. 3. A script: Control open script... 4. A text file: Read Read strings from raw text file... Used mostly in scripts. NB: Using the wrong option to try to open something will often cause the program to freeze. Read in the sound files hi.wav and ma.wav (Read Read from file...). Note that as you read in a sound file: The corresponding Sound object on your Praat objects list. A menu bar appears on the right side of the Object window. (See Figure 2.) 2

Figure 2: LEFT: Objects window. RIGHT: Picture window Unfortunately, you cannot select more than one file and read them in at the same time. (You can, however, write a script to do that.) NB: There is an important distinction between a file and an object in your Praat Object window. Objects can be manipulated and queried by Praat. An object is temporary. If you want to save something, you must explicitly write it (save it) to a file. 4 Examining a sound file Use your left mouse button to select a Sound object. The object name will be highlighted. Here are brief descriptions of some of the buttons in the menu on the right side of the Object window. Play: Plays the Sound object. Edit: Allows you to view the waveform, spectrogram, formants, ¼ and do various types of queries. See Ü4.1. Draw or Paint: Makes a picture of the selected object. See below. Periodicity: Calculates ¼ (called Pitch in Praat). Spectrum: Calculates spectra and spectrograms. 3

Formants & LPC: Calculates formants. To Manipulation: Resynthesizes ¼. There are also some buttons at the bottom of the Objects window, including: Remove: removes an object from the list Rename: renames an object. Note that Remove and Renameonly act onobjects, notonsaved files. So, for example, if you remove an object from the list, you haven t deleted the file. 4.1 Edit Select an object (e.g., Sound ma) in your object window. Click on Edit to bring up (at least) the waveform and the spectrogram. There are three horizontal bars at the bottom of the window. Clicking on them plays the selected portion (top bar) the contents of the window (middle bar) the entire file (top bar). The bars also give you duration information in seconds. To view (or not view) fundamental frequency (referred to in Praat as Pitch), formants, spectrogram, intensity, do: View Show analyses... Select analyses to be displayed. To change Spectrogram settings, do: View Spectrogram settings... (similar menu options to Pitch, Intensity, Formant) Selecting a portion. Left click on a point in the waveform or spectrogram window, keeping the button depressed, move to another point and release (as if you were highlighting something in Windows). Try this, then click on the top horizontal bar to hear the portion you ve selected. Zooming. In the very lefthand corner of the Edit window, there are zooming buttons (all, in, out, sel). Click on sel to zoom into your selected portion. Then click out or all to get back to the entire file. Extracting a smaller part of the existing Sound object and saving it as a file. This is a multistep process. Select the portion you wish to extract. Do: File Extract selection. Note that a new object Sound untitled appears in your Object window. Click on rename in the bottom of the Objects window, type a new name foo and click OK to accept it. Your window now says Sound foo. Nothing has been saved yet. Now do: Write Write to WAV file to save the extracted portion to a file. (NB: Note that you don t actually need to rename the the untitled Sound object in your Praat Objects window.) Querying. Place your cursor (by left clicking) somewhere in the file then click on Query menu (at top of Edit window) to see some of the things you can query for. Note that your Query options are different in the Edit window and in the Objects window. 4

4.2 TextGrid Figure 3: Edit window. Praat label files are different from xwaves label files in that lots of different types of label information (for example, words, segments, and tones) are stored in one file, called a TextGrid file (with.textgrid extension). A TextGrid files has one or more tiers. There are two types of tiers: interval tiers: for labels with a duration (words, segments) point tiers: for labels with no duration (tones) To make a TextGrid file: Figure 4: TextGrid dialogue window. Select a Sound object (Sound ma) in your Objects window. 5

Do: Label & segment To TextGrid... This brings up a dialogue window (Figure 4) with two lines. The first contains some bogus tier names (Mary John bell). The second says that bell is a point tier. Change the first line (Tier names) to: words segments misc (separated by spaces) Change the second line to: misc (this makes the misc tier a point tier) and click Okay. A TextGrid object will appear in your Objects window. Select Sound ma and TextGrid ma. If one follows the other in the list, you can left click and drag. Otherwise, hold down the Control key as you left click on each object. Click Edit to bring up the waveform, spectrogram and TextGrid file in the Edit window. Notice that the tiers of the TextGrid are numbered on the left side and named on the right side. They appear in the order in which you typed them. Click on the beginning of the vowel in the spectrogram (or the waveform). Notice that a vertical line with little circles in each of the TextGrid tiers will appear (see Figure 5). Click in the circle in the words tier to place a word boundary there. Repeat to place a word boundary at the end of the word. Click in words tier anywhere in between the two boundaries (this part of the tier will become highlighted) and type the label. Note that the text you type appears in between the two boundaries and also at the top of the Edit window. Click anywhere in the waveform or spectrogram window to get a vertical line with circles. Click the circle in the misc tier. Note that you get a vertical line in the tier with a space the space is where the text goes in a point tier. Type test (or whatever). To save the TextGrid object as a file, do: File Write TextGrid to text file... 4.3 Draw Praat allows you to create high quality figures and save them in a variety of formats. There are a few important concepts to keep in mind when you are building a Praat picture. A picture is built incrementally: first the waveform, then the spectrogram, then the TextGrid file, for example. You can use Edit Undo to undo changes. The spectrogram, formant values, ¼ you see in the Edit window are not available for your picture. If you want any of these things in the picture, you need to create them separately. You need to define the proportions of your picture. To make a picture: 6

Figure 5: TextGrid dialogue window. Select the Sound object. Create a spectrogram. Select Sound object. Spectrum Spectrogram... Click OK. (Note you may need to change default values (if you re making a spectrogram for a sibilant, for example).) Calculate mid values of formants. Formants & LPC To Formant (burg). Click OK. (Note you may need to change defaults depending on speaker. Defaults are for adult females.) Select Sound object. Use left mouse button to define proportions and placement of the waveform part of the picture. Suggest: 0-1.5 (height) X 0-6 (width). Draw Draw... Uncheck garnish, then click OK. (A picture of a waveform will appear in Praat picture window.) Select Spectrogram object. Define placement and proportions. Suggest 0.5-4 (note there is overlap with waveform). Paint... Uncheck garnish. OK. 7

Keeping same definition of placement and proportions, Select Formant object. Draw Speckle. Uncheck garnish. OK. Select TextGrid object. Define placement and proportions. Suggest 2-5 (height) 0-6 (width). Draw... Uncheck garnish. OK. Draw a box around entire picture. Highlight 0-5 (height) to (0-6) width. From menus at top of picture window: Margins Draw inner box. To save in a format for later editing: Write to praat picture file. To save in a format that can be incorporated into a paper: procedure differs according to the platform. Unix, Linux. Save as an encapsulated PostScript (.eps) file (for inclusion in a L A TEXdocument, for example: Write to EPS file... Windows, Mac. Highlight entire picture. File Copy to clipboard (or Ctrl-c). Paste in a Word, PowerPoint, etc. document. Or if above does not work. File Write to Windows metafile. Then in Word, Insert picture from file and select saved file. 4.4 Writing scripts One of the very many advantages of Praat is that it includes a scripting language that allows you to automate or semi-automate labelling, phonetic analyses, and sound manipulations. Two sample scripts are label.praat and get-formant.praat. They (unsuprisingly) semi-automate the process of labelling files and extract formant values for labelled points in the files. To open an existing script in Praat, do: Control Open script... To create a new script, do: Control New script. Important: If you are writing a new script, do not close the untitled script window that opens, or the program will crash. We ll go through some of the basics of learning to script in Praat. There are two important principles to keep in mind. It s easier to adapt someone else s script than to write your own, and many Praat scripts are available on the ling network or on the Web. A very handy feature of Praat is that it keeps a command history. If you want to do something, but you re not sure of the syntax, do the following. In your script window, do: Edit Clear history. In your objects window, select the object you want to work on and perform the operation. (For example, Query Get duration). Click in your script window and do: Edit Paste history. An important note on working on different platforms: If you use a script written for one platform on another platform, you will need to change a few things. For example, the direction of slashes differs from Unix to Windows. To move from Unix to Windows, you would need to change /home/welby/tutorials/praat to H:ÒTUTORIALSÒPRAAT and change all the other slashes in the script. 8

A couple other important (and not obvious) notes: Praat variables must begin with lowercase letters. 4.5 Quitting Praat To quit Praat, in Objects window: Control Quit. You will be warned if you have objects in your window or unsaved scripts. Remember that objects in your window are now saved unless you explicitly save them. References Boersma, Paul and Weenink, David (1992 2001). Praat: A system for doing phonetics by computer. Available from www.praat.org. 9