Praat LING115 November 4, 2009. Getting started Basic phonetic analyses with Praat –Creating sound objects Recording, reading from a file, creating from.

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

P1PMF Split1 QBASIC. P1PMF Split2QBasic Command Prompt Will launch the emulator DOS operating system? Press Alt + Enter to display the widescreen.
Excel Tutorial 6 Managing Multiple Worksheets and Workbooks
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tools for Speech Analysis Julia Hirschberg CS4995/6998 Thanks to Jean-Philippe Goldman, Fadi Biadsy.
Introduction to Unix – CS 21 Lecture 11. Lecture Overview Shell Programming Variable Discussion Command line parameters Arithmetic Discussion Control.
Tools for Speech Analysis Julia Hirschberg CS4995/6998 Thanks to Jean-Philippe Goldman, Fadi Biadsy.
10 February Event Monitoring and Event File Maintenance.
Chapter 5 Creating, Sorting, and Querying a Table
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
AN INTRODUCTION TO PRAAT Tina John M.A. Institute of Phonetics and digital Speech Processing - University Kiel Institute of Phonetics and Speech Processing.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Basic and advanced Praat Scripting
BoardMaker Ver 6 Creating Interactive Activities for the Classroom.
SW388R7 Data Analysis & Computers II Slide 1 Analyzing Missing Data Introduction Problems Using Scripts.
Games and Simulations O-O Programming in Java The Walker School
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Shell Script Examples.
Creating a MagicInfo Pro Screen Template
Customizing forms and writing QuickBooks Letters Lesson 15.
MATLAB File Management. MATLAB User File Management Matlab provides a group of commands to manage user files. For more information, type help iofun. pwd.
1 CA201 Word Application Increasing Efficiency Week # 13 By Tariq Ibn Aziz Dammam Community college.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
CIS 218 Advanced UNIX1 CIS 218 – Advanced UNIX (g)awk.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Shell Script Programming. 2 Using UNIX Shell Scripts Unlike high-level language programs, shell scripts do not have to be converted into machine language.
UNIX Shell Script (1) Dr. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology
Chapter 17 Creating a Database.
Speech analysis with Praat Paul Trilsbeek DoBeS training course June 2007.
Using Technology in Academic Life Skills February 4, 2010.
Visual Basic Programming Chapter Six Notes Repetition and the Do Statement ADDING ICONS TO YOUR FORM –It is possible to add an ______________ to your title.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
More about Strings. String Formatting  So far we have used comma separators to print messages  This is fine until our messages become quite complex:
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Computer Programming Modeling a Passive Solar Home.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
HW2-2 Speech Analysis TA: 林賢進
Introduction to Programming Python Lab 8: Loops 26 February PythonLab8 lecture slides.ppt Ping Brennan
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Accomplish more with macros! Presenter: Joyce Bell Princeton University
Praat: doing phonetics by computer Introductory tutorial Kyuchul Yoon Division of English Kyungnam University.
Excel Tutorial 8 Developing an Excel Application
An Introduction to : a closer look at analysing vowels
CIRC Summer School 2017 Baowei Liu
Speech Analysis TA:Chuan-Hsun Wu
Introduction to Programming
Starter Write a program that asks the user if it is raining today.
T. Jumana Abu Shmais – AOU - Riyadh
Introduction to Programming
Text / Serial / Sequential Files
Topics Introduction to File Input and Output
CSCI N207 Data Analysis Using Spreadsheet
Scripts In Matlab.
Introduction to Programming
WinSLAMM Batch Editor Module 23
Tools for Speech Analysis
Text / Serial / Sequential Files
Presentation transcript:

Praat LING115 November 4, 2009

Getting started Basic phonetic analyses with Praat –Creating sound objects Recording, reading from a file, creating from formula –Analyzing sound objects Selection Pitch, intensity, formants –Drawing Sound wave, pitch/intensity/formant contours Saving

Recording Sampling frequency –Number of samples taken per second –Higher sampling frequency More accurate digitization A larger sound file –22050Hz is enough for speech analysis

Reading from a file Supported file types –.wav –.aiff –.au –etc. Use “Open long sound file...” if the file is longer than two minutes

Sound object Sound object is the object that will be analyzed, manipulated,...

Sound editor window

Selection

Zoom to selection Zoom in to selection (sel) Zoom out to view all (all)

Pitch

Pitch range settings Pitch analysis will find values only within the specified range

Pitch extraction (in selection)

Intensity

Intensity range settings Some dB levels –Whisper, 5ft = 30dB –Normal conversation = 60dB –Threshold of pain = 130dB

Intensity listing

Formants aeiou F1 (Hz) F2 (Hz)

Formant listing

Drawing – sound wave

Drawing – pitch contour

Drawing – intensity contour

Drawing – formant contour

Saving picture

Segmentation and labeling TextGrid in Praat –Creating (interval) tiers –Adding intervals –Labeling intervals –Extracting values within the interval Exercise –F1 and F2 extraction from TextGrid –Creating a vowel chart

Creating a TextGrid

Starting the TextGrid Editor Select both the sound object and the textgrid object –Click on the sound object –Hold the Ctrl-key –Click on the textgrid object Click “Edit”

TextGrid Editor

Selecting tiers Click on the tier or View > –Select next tier –Select previous tier

Adding intervals Click on the part of the wave form where you wish to mark the boundary Click on the small ring in the tier where you wish to add the interval or Interval > Add interval on tier (tier-level)

Labeling the interval Click on the tier or the interval within a tier Make sure the part that you want to edit is highlighted in yellow Type in the text to label the interval

X-SAMPA A phonetic transcription system using ASCII characters

Information within the interval Select the interval Make sure relevant information is set to be displayed –e.g. Turn on “Show intensity” Choose the desired menu to extract information related to the selected interval –e.g. “Get intensity”

Praat scripting Object selection Commands, arguments Language elements –Variables, formulas, jumps, loops Listing multiple files in a directory Scripting an editor from a shell script

Why? To save time and energy from repeating same/similar processes

Reference NB: Some of the examples are outdated

Basic idea, for example Suppose we had a sequence of commands that we want to run repeatedly –e.g. “ Read from file > Select object > Play “ We list the sequence of commands (with arguments if necessary) We specify how and under which conditions we want to run the sequence of commands –e.g. Repeat over the entire list of.wav files in the directory (folder)

Getting started Or use your favorite text editor before you run the script

Info window You can print out the extracted information or messages to the “Info” window echo clearinfo print printline

Object selection select –select Sound 2500_1 plus –plus Sound 2500_10 minus –minus Sound 2500_1 select all Remove

Object selection – (2) Objects have sequential ID, which begins from 1 since the program started –{select, plus, minus} e.g. select 3, plus 3, minus 3 You can save the name, type+name, and ID of the selected object to a variable –name$=selected$(“Sound”) or selected$(“Sound”,2) –fullname$=selected$() or selected$(2) –id=selected (“Sound”, -1) The positive numbers are counted from the top of the object list The negative numbers are counted from the bottom of the object list

Commands Once one or more objects are selected (or even when there is no object selected), you can choose from a set of menus or commands Some of these do not require any arguments to be specified –e.g. Play, Info, Edit, etc. For others, arguments should be specified –e.g. Query > Get mean...

Commands – (2) For commands without arguments, you can simply type the command in a separate line in the script –e.g. Play

Commands – (3) For commands with arguments, you must specify all the arguments in the script – Arguments are separated by space If an argument contains a space, it must be in double quotes For check-box, “yes” to check and “no” to uncheck For radio button, write the text next to the radio button you wish to select Arguments are ordered left to right, top to bottom

Comments and white space White space (space and tab) at the beginning is ignored Start a line by #, !, or ; to add comments –e.g. # The next line does x,y,z

Variables Numeric variables –Variable name must start with a lower case letter –i=2 String variables –Variable name must start in lower case and end with $ –i$=“hello” Variables must be initialized before use Variables in single quotes can substitute parts of a string –name$=selected$(“Sound”,-1) –echo The name of the sound is ‘name$’

Variables – (2) You can store the value from query commands, for example, in a variable –Query commands are the commands that appear under “Query-” –mean = Get mean... All –If you don’t store the value in a variable, it will be printed on the Info window

Formulas Numbers –length=2 –height=8 –area=length*height/2 Strings (there may be more...) –a$=“hello,” –b$=“ world!” –c$=a$+b$ (concatenate a$ and b$) –d$=a$-”o” (right strip the string from a$)

Formulas – (2) When a formula is used as an argument, you must make sure there is no white space between the terms in the formula –e.g. Get mean... length/2 length Unless the formula is in double quotes –e.g. Get mean... “length / 2” length

Jumps An if-then construct –begins with if and ends with endif –may have elsif or else in between Example if age<=3 length=1.20 elsif age<=8 length=1.60 else length = 2.0 endif

“For” loops Repeats the statements within the “for” loop while variable takes on a value between and for from to... endfor

“Repeat” loops Repeats the statements between repeat and until, while the after until is false repeat... until

“while” loops Statements between while and endwhile are repeated until is no longer true while... endwhile

Listing filenames from a directory Create Strings as file list... – = name of the list – Directory, e.g. C:\linguistics\ Directory and the file type, e.g. C:\linguistics\*.wav “Edit” to view the listed filenames “Get number of strings” to see how many filenames are in the list “Get string... ” to retrieve individual filenames

Example path$="C:\temp\" Create Strings as file list... temp 'path$' select Strings temp numfiles=Get number of strings for i from 1 to numfiles select Strings temp filename$=Get string... i fullname$=path$+filename$ Read from file... 'fullname$' soundname$=filename$-".wav" select Sound 'soundname$' Play endfor select all Remove

Scripting an editor You can switch from the Praat objects window to the Editor window, and include the editor commands in your script Edit editor Editor-specific commands... endeditor