Skip to search.
praat-users · Praat Users Group

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
Messages 2588 - 2617 of 6386   Oldest  |  < Older  |  Newer >  |  Newest
Messages 2588 - 2617 of 6386   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#2588 From: "cun_xi" <citysun79@...>
Date: Thu Jun 1, 2006 9:25 am
Subject: amplitude
cun_xi
Send Email Send Email
 
hello, I want to get the amplitude of each pulse, can I substitute the
amplitude by the "Get root-mean square"? thank you.

cun xi

#2589 From: Katherine Crosswhite <crosswhi@...>
Date: Fri Jun 2, 2006 7:28 pm
Subject: Re: script an editor for spectrum slice
kmacrosswhite
Send Email Send Email
 
One thing you should check is that the editor really is a "Sound" edit
window.  For example, if you have both a sound object and a TextGrid
selected for editing, the editor window is technically for the
TextGrid.  So you would have to say:

editor TextGrid 'object_name$'

You can check this by just looking at the upper left hand corner of the
editor window where it will say either "Sound" or "TextGrid" (or
whatever) and then the object name.

I hope that solves your problem.

Best,

K.
>    Date: Wed, 31 May 2006 04:44:55 -0000
>    From: "lb9121" <lb9121@...>
> Subject: script an editor for spectrum slice
>
> Hello, praat users
> I would like to get the spectrum slice using a script and move the
> cursor to a specified point
>
> editor Sound 'object_name$'
> 	       Move cursor to... beginpoint
> 	       View spectrum slice
> endeditor
>
> But I receive error message saying there is no such a editor. I
> checked the manual and there is no mistyping. Is this function
> available in scripting?
>
>
>

#2590 From: Daniel Hirst <daniel.hirst@...>
Date: Sat Jun 3, 2006 6:55 am
Subject: Re: NEWBIE: Help with Script (get pitch)
daniel_hirst
Send Email Send Email
 
Paola

the following is a script which treats a batch of folders each of
which should contain a file with the same name as the folder and with
an extension which is specified in the form (in your case .wav)

It can easily be adapted for a number of different purposes - this
version treats the data for the information you requested.
Note that rather than use the editor (with Get pitch etc) the program
uses To Pitch... etc then Get mean...

The default pathname of the folder and the path separator are for a
Macintosh computer
- if you use Windows it would be something like C:\Paola\Sounds
\Italian and the path separator would be \


   ----------



hope you find this useful!

daniel

------------------------------------------------------------------------
-------------------------
    Equipe Prosodie et Représentation Formelle du Langage - salle A485
                 CNRS Laboratoire Parole et Langage (UMR 6057)
                    Université de Provence 29 avenue Schuman
                         13621 Aix-en-Provence cedex 1, France
    tel: +33-4-4295-3628    secr: +33-4-4295-3634   fax: +33-4-4295-3788
------------------------------------------------------------------------
--------------------------
Speech Prosody list      http://mailup.univ-mrs.fr/wws/info/speech-
prosody
Praat-users list                           http://groups.yahoo.com/
group/praat-users
Speech Prosody 2006 May 2-5    http://www.ias.et.tu-dresden.de/sp2006
------------------------------------------------------------------------
--------------------------




[Non-text portions of this message have been removed]

#2591 From: Daniel Hirst <daniel.hirst@...>
Date: Sat Jun 3, 2006 7:02 am
Subject: Re: NEWBIE: Help with Script (get pitch)
daniel_hirst
Send Email Send Email
 
[sorry forgot to include the script!!!]

Paola

the following is a script which treats a batch of folders each of
which should contain a file with the same name as the folder and with
an extension which is specified in the form (in your case .wav) (so
you would have for example a folder called fao0079 containing a file
called fao0079.wav)

It can easily be adapted for a number of different purposes - this
version treats the data for the information you requested.
Note that rather than use the editor (with Get pitch etc) the program
uses To Pitch... etc then Get mean...

The default pathname of the folder and the path separator are for a
Macintosh computer
- if you use Windows it would be something like C:\Paola\Sounds
\Italian and the path separator would be \


    ----------



hope you find this useful!

daniel


=======================================================

#praat script
scriptName$ = "batch.praat"
version$ = "2006:06:03"

#author Daniel Hirst
#email daniel.hirst@...

#purpose batch treatment of directory containing files
#with same name as directory plus extension
#
#the directory path is divided into directory and subdirectory to make
#it easier to modify the subdirectory in the form window

form Select Directory for treatment
	 comment To analyse several directories consecutively
	 comment  - click "Apply" for each one except the last
	 comment - then click "OK" for the last one
	 comment
	 word Directory /Users/daniel/Documents/Corpus/English/Eurom1-EN/files
	 word SubDirectory fa
	 word Extension .wav
	 word PathSeparator /
endform
clearinfo

path$ = directory$+pathSeparator$+subDirectory$


Create Strings as file list... myList 'path$'
myFolders = selected("Strings")
clearinfo
nFolders = Get number of strings

for iFolder from 1 to nFolders
	 select myFolders
	 name$ = Get string... iFolder
	 file$ = path$+pathSeparator$+name$+pathSeparator$+name$+extension$
	 if fileReadable(file$)
		 call treatment
	 else
		 printline 'name$''extension$' is not readable
	 endif
endfor

#this subroutine is specific to the request by paolafra
procedure treatment
	 Read from file... 'file$'
	 mySound = selected("Sound")
	 To Pitch... 0.01 70 700
	 meanPitch = Get mean... 0 0 Hertz
	 select mySound
	 To Intensity... 70 0 yes
	 meanIntensity = Get mean... 0 0 energy
	 printline 'name$''tab$''meanPitch:3''tab$''meanIntensity:3'
	 select all
	 minus myFolders
	 Remove
endproc

select all
Remove



------------------------------------------------------------------------
-------------------------
    Equipe Prosodie et Représentation Formelle du Langage - salle A485
                 CNRS Laboratoire Parole et Langage (UMR 6057)
                    Université de Provence 29 avenue Schuman
                         13621 Aix-en-Provence cedex 1, France
    tel: +33-4-4295-3628    secr: +33-4-4295-3634   fax: +33-4-4295-3788
------------------------------------------------------------------------
--------------------------
Speech Prosody list      http://mailup.univ-mrs.fr/wws/info/speech-
prosody
Praat-users list                           http://groups.yahoo.com/
group/praat-users
Speech Prosody 2006 May 2-5    http://www.ias.et.tu-dresden.de/sp2006
------------------------------------------------------------------------
--------------------------

#2592 From: "Omair Khan" <omikhan@...>
Date: Sat Jun 3, 2006 7:49 pm
Subject: total time of audio file w/o textgrid
omikhan2001
Send Email Send Email
 
hi,
I am working on a sound file and i don't have text grid file. I want
to access the total time of the file in my scrpt. which function
should i use fo that purpose. Or you can guide me to a resource wher i
can find this information.
thaks,
omair

#2593 From: "aleggeris" <aleggeris@...>
Date: Sat Jun 3, 2006 1:12 pm
Subject: Experiment MFC - how to run a simple experiment
aleggeris
Send Email Send Email
 
Hi,

I was wondering if anyone has the time to answer my question
regarding an MFC Experiment that I am trying to run. I am using the
following script and I am having difficulties running it. The Praat
website mentions that I need to open it via the "Read from file"
command, but when I try this I get an error message: "Found an
enumerated value while searching for a string".  can only open it as
a Script, but then I can't run it.
I don't know if there is a particular format that I need to save my
scrip as. For the time being I have it as a text file. Maybe the
problem might be in the script itself, but it doesn't seem likely,
given that it gets stuck on the very first line.

Thank you very much for your time,
Truly,
Angelos


This is the script I am using (taken from the Praat website):
"ooTextFile"
"ExperimentMFC 4"
stimuliAreSounds? <yes>
stimulusFileNameHead = "Sounds/"
stimulusFileNameTail = ".wav"
stimulusCarrierBefore = "weSayTheWord"
stimulusCarrierAfter = "again"
stimulusInitialSilenceDuration = 0.5 seconds
stimulusMedialSilenceDuration = 0
numberOfDifferentStimuli = 4
     "i" ""
     "ii" ""
     "e" ""
     "ae" ""
numberOfReplicationsPerStimulus = 3
breakAfterEvery = 0
randomize = <PermuteBalancedNoDoublets>
startText = "Click to start."
runText = "Choose the vowel that you heard."
pauseText = "You can have a short break if you like. Click to
proceed."
endText = "The experiment has finished."
maximumNumberOfReplays = 0
replayButton = 0 0 0 0 "" ""
okButton = 0 0 0 0 "" ""
oopsButton = 0 0 0 0 "" ""
responsesAreSounds? <no> "" "" "" "" 0 0
numberOfDifferentResponses = 5
     0.2 0.3 0.7 0.8 "h I d" "" "i"
     0.3 0.4 0.5 0.6 "h E d" "" "e"
     0.4 0.5 0.3 0.4 "h A d" "" "a"
     0.5 0.6 0.5 0.6 "h O d" "" "o"
     0.6 0.7 0.7 0.8 "h U d" "" "u"
numberOfGoodnessCategories = 5
     0.25 0.35 0.10 0.20 "1 (poor)"
     0.35 0.45 0.10 0.20 "2"
     0.45 0.55 0.10 0.20 "3"
     0.55 0.65 0.10 0.20 "4"
     0.65 0.75 0.10 0.20 "5 (good)"

#2594 From: Daniel Hirst <daniel.hirst@...>
Date: Sun Jun 4, 2006 2:07 pm
Subject: Re: total time of audio file w/o textgrid
daniel_hirst
Send Email Send Email
 
With a sound file open and selected you can get the duration with

	 Get total duration

you can access this manually (ie without a script) via the menu Query
-  > Time domain > Get total duration

------------------------------------------------------------------------
-------------------------
    Equipe Prosodie et Représentation Formelle du Langage - salle A485
                 CNRS Laboratoire Parole et Langage (UMR 6057)
                    Université de Provence 29 avenue Schuman
                         13621 Aix-en-Provence cedex 1, France
    tel: +33-4-4295-3628    secr: +33-4-4295-3634   fax: +33-4-4295-3788
------------------------------------------------------------------------
--------------------------
Speech Prosody list      http://mailup.univ-mrs.fr/wws/info/speech-
prosody
Praat-users list                           http://groups.yahoo.com/
group/praat-users
Speech Prosody 2006 May 2-5    http://www.ias.et.tu-dresden.de/sp2006
------------------------------------------------------------------------
--------------------------




[Non-text portions of this message have been removed]

#2595 From: NEDA MOUSAVI <n.mousavi62@...>
Date: Sun Jun 4, 2006 3:43 am
Subject: A QUISTION
n.mousavi62
Send Email Send Email
 
HELLO
   I am a nivuce user so please guide me.
   1.what is the use of pointprocess  menu?
   2.what is the meaning of getting jitter or shimmer and how can we get them?

   thank you very much


---------------------------------
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo!
Messenger with Voice

[Non-text portions of this message have been removed]

#2596 From: Paul Boersma <paul.boersma@...>
Date: Sun Jun 4, 2006 2:43 pm
Subject: Re: Experiment MFC - how to run a simple experiment
paulboersma
Send Email Send Email
 
At 13:12 +0000 3-6-06, aleggeris wrote:
>The Praat
>website mentions that I need to open it via the "Read from file"
>command, but when I try this I get an error message: "Found an
>enumerated value while searching for a string".

the website is about the current version of Praat. You must instead have a
version of Praat that is at least half a year old. If you download a newer
version of Praat, your experiment will open.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2597 From: Paul Boersma <paul.boersma@...>
Date: Sun Jun 4, 2006 3:14 pm
Subject: Re: A QUISTION
paulboersma
Send Email Send Email
 
At 20:43 -0700 3-6-06, NEDA MOUSAVI wrote:
>  I am a nivuce user so please guide me.
>  1.what is the use of pointprocess  menu?
>  2.what is the meaning of getting jitter or shimmer and how can we get them?

in the Intro, choose the Voice Tutorial.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2598 From: Fabrice Mogini <fabrice.mogini@...>
Date: Sat Jun 10, 2006 4:18 pm
Subject: spectral slice: 3 highest and the 3 lowest amps/what freqs?
fabmog1
Send Email Send Email
 
Hi,

How would I create a script that would:

Find the 3 highest and the 3 lowest amplitudes from a spectral slice
and what frequencies these are.

Example:

221Hz              60db

110Hz               53db

1845Hz            22db

----------------------------

1653Hz              3db

176Hz               7db

181Hz            12db

----------------------------
Any idea?

          Thank you

          Fabrice Mogini

#2599 From: Stefan Crawcour <stephen_crawcour@...>
Date: Sat Jun 10, 2006 4:50 pm
Subject: longest periods
stephen_craw...
Send Email Send Email
 
Dear members of the list,

   in order to better understand how the autocorrelation function works, I would
be very thankful if you could give me any indication on what the "longest
periods" mean, since they depend so much on the pitch floor.

   Best regards,

   Stephen



  __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]

#2600 From: Paul Boersma <paul.boersma@...>
Date: Sun Jun 11, 2006 2:07 am
Subject: Re: longest periods
paulboersma
Send Email Send Email
 
At 09:50 -0700 10-6-06, Stefan Crawcour wrote:
>I would be very thankful if you could give me any indication on what the
"longest periods" mean, since they depend so much on the pitch floor.

If the lowest pitch that you can measure is 100 Hz, then that means that the
minimum number of periods that you can measure per second is 100. This is
because "Hertz" means the same as "periods per second".

If the lowest pitch that you can measure is 100 Hz, then the longest period that
you can measure is 10 milliseconds, because 100 periods of 10 milliseconds fit
into a second. Pitches below 100 Hz will then not be regarded as pitches, and
periods above 10 ms will not be regarded as periods.

The explanation above cannot replace an explanation with the help of pictures.
The book "vowels and consonants" by Peter Ladefoged is one of the textbooks that
clearly explain the relation between pitch and period, with appropriate
graphics.

For people who like formulas: pitch=1/period and period=1/pitch...
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2601 From: Arne Bachmann <acheron@...>
Date: Tue Jun 13, 2006 1:02 pm
Subject: Scripts hangs at random positions
styxguardian
Send Email Send Email
 
Dear all, dear Paul!

I often need to process large TextGrids with praat. Everytime I try
working on larger files, the script hangs, but each time I call it, it
hangs at a different position in the Textgrid. So the general error is
repeatable: Praat says something like "should be a natural positive
number (is 0)", but the number is definitely always positive. Sometimes
it hangs at a different position (which contains a similar expression).
One time I solved this problem by writing all the stuff I had to process
into a text file and working on this data from within another script.
This time this is not an option and the problem rather looks like a
memory hole.

A similar problem ocurred, when I had about 30 objects in the praat
objects window. Then also some strange errors occured, that could be
cured by removing the files in each run of the main loop.

The present "problem" looks like that:
143  tmid =  tssy + (tesy - tssy) / 2
144  imid =  Get interval at time... 'tone' 'tmid'
145  tone$ =  Get label of interval... 'tone' 'imid'

where I find the middle of an interval, get the number of the interval
in another tier (here "tone") and fetch its label, nothing wrong with
that. But in 145 that strange error occurs after the script put a
randomly varying amount of lines into a destination file.


Kind regards,

Arne Bachmann
IKP Bonn

#2602 From: "suzy_orr" <suzy_orr@...>
Date: Tue Jun 13, 2006 4:02 pm
Subject: Sample problems
suzy_orr
Send Email Send Email
 
Dear All

I am having big problems uploading my data into Praat because the audio
samples are only 1 bit with a sample rate of 8kHz and according to the
program notes it should be at least 4 bits. The reason my data is in
this very strange format is because it consists from pre-recorded files
of call centre telephone calls. The call centre uses a program called
DSP group True Speech (TM) to record the calls as .wav files. Obviously
it is not normally necessary to do anything more technical than listen
back to the calls.

I understand that Praat can only accept a certain minimum amount of
information on a sound file and so it may be that I cannot analyse this
data acoustically at all, but if anyone has any suggestions for getting
around this I would be very grateful for them! They play fine in Media
Player and the speech is clearly discernable (although the recordings
aren't the best quality mostly due to background noise).

Thanks

Suzy

#2603 From: Paul Boersma <paul.boersma@...>
Date: Tue Jun 13, 2006 7:45 pm
Subject: Re: Scripts hangs at random positions
paulboersma
Send Email Send Email
 
At 15:02 +0200 13-6-06, Arne Bachmann wrote:
> Everytime I try
> working on larger files, the script hangs, but each time I call it, it
> hangs at a different position in the Textgrid.

It looks as though you are trying to report a bug (programming error by us). The
Praat discussion list is not really meant for that, because only the authors of
the Praat program can correct bugs.

> Praat says something like "should be a natural positive
> number (is 0)", but the number is definitely always positive.

"something like" is a little too vague for us to work with. Please report what
Praat actually says, perhaps "Interval number should be a natural positive
number (is 0)"?

Also, if you report a bug, then please mention the Praat version and your
operating system, and if you report a bug related to a script, then please send
me the complete script.

>The present "problem" looks like that:
>143  tmid =  tssy + (tesy - tssy) / 2
>144  imid =  Get interval at time... 'tone' 'tmid'
>145  tone$ =  Get label of interval... 'tone' 'imid'

A zero in 'imid' would mean that there is no interval at time 'tmid' on tier
'tone'.

>that strange error occurs after the script put a
>randomly varying amount of lines into a destination file.

If you mean that with the *same* TextGrid the problem occurs at varying points
in the loop, then that certainly sounds like a bug. But I need more specific
information to be able to hunt it down, if it is one.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2604 From: "Geoffrey S. Nathan" <geoffnathan@...>
Date: Tue Jun 13, 2006 5:43 pm
Subject: Weird Window Problem
geoff_nathan
Send Email Send Email
 
I've been playing with PRAAT on a new Dell running the latest version of
XP and it exhibits a behavior I haven't seen before.  In an Editing
window, whether maximized or smaller, I can't get to the buttons at the
bottom of the screen (scroll bar, 'selection' etc.).  They are just
barely visible at the bottom of the window (actually the scroll bar
isn't even visible).  I know there are keyboard shortcuts, but I've
gotten into the habit of zooming to selection and scrolling with the
mouse.  Is there some setting hidden somewhere that will fix this?
Resizing the window with the mouse doesn't change how much is visible in
the window.

Geoff

--
Geoffrey S. Nathan <geoffnathan@...>

Faculty Liaison, Computing and Information Technology,
and Associate Professor of English, Linguistics Program
Phone Numbers (313) 577-1259 or (313) 577-8621
Wayne State University
Detroit, MI, 48202

#2605 From: shobha shekar <shobhasuri2@...>
Date: Wed Jun 14, 2006 4:39 am
Subject: help -source filter synthesis script
shobhasuri2
Send Email Send Email
 
dear all
   i am hereby presenting two problems with the source-filter speech synthesis
   (I)
   i am working with the following praat script for the synthesis of vowel,i am
unable to run the script and the error  is in command-- Filter with one
formant(in-line)... fi'max(50,fi'/15)  ,kindly help me.
   the script is,


   form Play vowel
positive F1 300
positive F2 2500
endform
#create a falling F0 contour:
Create PitchTier... vowel 0 0.3
Add point... 0 150
Add point... 0.3 100
To PointProcess
#create a source signal:
Remove points between... 0 0.01
Remove points between... 0.29 0.3
To Sound (phonation)... 44100 1 0.05 0.7 0.05 3.0 4.0
#Filter with ten formants:
f3=max(2500,f2+1000)
f4=max(3500,f2+400)
f5=max(4500,f2+600)
f6=f5+1000
f7=f6+1000
f8=f7+1000
f9=f8+1000
f10=f9+1000
for i to 10
Filter with one formant(in-line)... fi'max(50,fi'/15)--------------------error
here
endfor
#lets hear:
Play
#clean up:
plus PointProcess vowel
plus PitchTier vowel
Remove

   (II)
   i am working through the "source-filter synthesis"tutorial --when i run "The
ba-da continuum" script in the tutorial,please tell me what i am supposed to
get,because the objects "sound bada1,......... sound bada10" are not getting
played

   script is,

   Create PitchTier... f0 0.00 0.5
Add point... 0.00 150
Add point... 0.5 100
#to make first and last 50 msec voiceless:
To PointProcess
Remove points between... 0.00 0.50
Remove points between... 0.45 0.5
#generate glottal source:
To Sound (phonation)... 44100 0.6 0.05 0.7 0.03 3.0 4.0
Create IntensityTier... intens 0.00 0.50
Add point... 0.05 50
Add point... 0.10 80
plus Sound f0
Multiply
Rename... source
#ten sounds are generated in loop:
for i from 1 to 10
f2_locus=500+(2500/9)*(i-1);
Create FormantTier... filter 0.00 0.50
Add point... 0.05 100 50 'f2_locus' 100 3000 300 4000 400 5000 500 6000 600 7000
... 700 8000 800 9000 900
Add point... 0.10 700 50 1100 100 3000 300 4000 400 5000 500 6000 600 7000
... 700 8000 800 9000 900
plus Sound source
Filter (no scale)
Rename... bada'i'
   select FormantTier filter
Remove
endfor
   #clean up:
select Sound source
plus Sound f0
plus IntensityTier intens
plus PointProcess f0
plus PitchTier f0
Remove



   thank you one and all
   shobha

  __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]

#2606 From: "glasgow_epl" <glasgow_epl@...>
Date: Wed Jun 14, 2006 10:05 am
Subject: Making textgrids into orthographic transcripts
glasgow_epl
Send Email Send Email
 
Dear Paul, dear All,

We are currently trying to find a way of creating orthographic
transcripts of multi-speaker conversations (e.g. 3 speakers) from Praat
sound/textgrid files. We are able to create the basic textgrid files
such that each speaker has its own interval tier showing boundaries for
speaker overlap. What we can't do is extract these tiers to text file
for subsequent display of the orthographic transcript in the usual
format of speakers taking turns (without all other textgrid tier
characteristics e.g. time stamps).

In the ideal world we would like to use Praat as the source to create
time linked orthographic transcripts with the ability to be able to
view the transcript as a text file but with links to the sound portions
and return to the Praat Sound/textgrid view with waveform, etc..

Can anyone who's done this please advise us how to do it?

Many thanks

Glasgow EPL
University of Glasgow

#2607 From: "glasgow_bob6" <glasgow_bob6@...>
Date: Wed Jun 14, 2006 11:30 am
Subject: New to scripting
glasgow_bob6
Send Email Send Email
 
Dear all,

I am looking for a bit of help regarding scripting on long sound files.
I have tagged my transcriptions with the words I wish to analyse, and
want to write a script that will go through the whole of the (long)
textgrid and take formant measures at the midpoints I select, as
opposed to single word files. In addition, I wish to edit the formant
logs so I can input the token word to be able to see which word belongs
to which set of formant logs. My tentative tests of this has shown me
that the log files are overwritten on each new logging procedure. Is
this possible? I am very new to scripting, so if this is possible any
help would be greatly appreciated.

Regards,

Bob

#2608 From: Daniel Hirst <daniel.hirst@...>
Date: Thu Jun 15, 2006 4:45 am
Subject: Re: Making textgrids into orthographic transcripts
daniel_hirst
Send Email Send Email
 
> We are currently trying to find a way of creating orthographic
> transcripts of multi-speaker conversations (e.g. 3 speakers) from
> Praat
> sound/textgrid files. We are able to create the basic textgrid files
> such that each speaker has its own interval tier showing boundaries
> for
> speaker overlap. What we can't do is extract these tiers to text file
> for subsequent display of the orthographic transcript in the usual
> format of speakers taking turns (without all other textgrid tier
> characteristics e.g. time stamps).

I'm not sure if this is exactly what you are trying to do but the
following script prints out all labelled intervals from a multi-
tiered TextGrid in chronological order with the name of the
corresponding tier and the start and end of the interval:

------------------------------------------------------------------------
-------------------------
#praat script
scriptName$ = "textgrid2transcript.praat"
version$ = "2006:06:15"
#author: Daniel Hirst
#email: daniel.hirst@...

#purpose: print out labelled intervals of multi-tiered TextGrid in
chronological order
#requires: one TextGrid (selected)

nTextGrids = numberOfSelected("TextGrid")
if nTextGrids != 1
	 pause Please select one TextGrid
endif
nSpeakers = Get number of tiers
duration = Get total duration
start = 0
best_end = duration
clearinfo


while start < duration
	 for iSpeaker from 1 to nSpeakers
		 if Is interval tier... iSpeaker
			 iInterval = Get interval at time... iSpeaker start
			 begin = Get starting point... iSpeaker iInterval
			 end = Get end point... iSpeaker iInterval
			 if begin = start
				 label$ = Get label of interval... iSpeaker iInterval
				 if label$ != ""
					 speaker$ = Get tier name... iSpeaker
					 printline 'speaker$': ['start:3':'end:3'] 'label$'
				 endif
			 endif
			 if end < best_end
				 best_end = end
			 endif
		 endif
	 endfor
	 start = best_end
	 best_end = duration
endwhile

------------------------------------------------------------------------
-------------------------
    Equipe Prosodie et Représentation Formelle du Langage - salle A485
                 CNRS Laboratoire Parole et Langage (UMR 6057)
                    Université de Provence 29 avenue Schuman
                         13621 Aix-en-Provence cedex 1, France
    tel: +33-4-4295-3628    secr: +33-4-4295-3634   fax: +33-4-4295-3788
------------------------------------------------------------------------
--------------------------
Speech Prosody list      http://mailup.univ-mrs.fr/wws/info/speech-
prosody
Praat-users list                           http://groups.yahoo.com/
group/praat-users
Speech Prosody 2006 May 2-5    http://www.ias.et.tu-dresden.de/sp2006
------------------------------------------------------------------------
--------------------------

#2609 From: "YingShing_Li" <yingshing_li@...>
Date: Thu Jun 15, 2006 5:30 am
Subject: detecting the boundaries and calculating the duration
YingShing_Li
Send Email Send Email
 
Dear ALL,

I am currently working on a lot of wav. files of 3 seconds from
subjects. For each wav. file, I have to determine the actual
boundaries (the onset and endpoint)of subjects' utterance and measure
the duration of the utterance.
My possible solution is listing all the intensity points of the wav.
files and then using the threshold of 50dB to detect the onset and
endpoint for the listing intensity points. Finally, I can get the
interval of the onset and endpoint.
I wonder if anyone has ever done this before and kindly told me how to
write a script to finish the task automatically. If you have another
kind of solution, it will also be greatly appreciated.

Thank you!

Yingshing

#2610 From: Daniel Hirst <daniel.hirst@...>
Date: Thu Jun 15, 2006 7:13 am
Subject: Re: New to scripting
daniel_hirst
Send Email Send Email
 
> I am looking for a bit of help regarding scripting on long sound
> files.
> I have tagged my transcriptions with the words I wish to analyse, and
> want to write a script that will go through the whole of the (long)
> textgrid and take formant measures at the midpoints I select, as
> opposed to single word files. In addition, I wish to edit the formant
> logs so I can input the token word to be able to see which word
> belongs
> to which set of formant logs. My tentative tests of this has shown me
> that the log files are overwritten on each new logging procedure. Is
> this possible? I am very new to scripting, so if this is possible any
> help would be greatly appreciated.

Rather than use the editor and make log files interactively it is
probably more efficient to first create a TextGrid with an interval
tier with the word labels and a point tier with the midpoints where
you want to make the measurements.

Then you can use a script like the following which needs one Sound or
LongSound and one TextGrid (both selected) and outputs the
measurements (here it measures F0, F1, F2 and F3) together with the
word label and the duration of the word to the Info window which you
can then save to a text file. You could of course send the output
directly to a text file.

This has the advantage that you keep a trace of the points in the
TextGrid and if you want to modify them you can run the script again
with the new TextGrid.

best wishes

	 daniel


------------------------------------------------------------------------
-------------------------
#praat script
scriptName$ = "formants_from_TextGrid.praat"
version$ = "2006:06:15"
#author: Daniel Hirst
#email: daniel.hirst@...

#purpose: Extract F0 and formant values at points defined on TextGrid
#requires: One Sound or LongSound and one TextGrid
#          TextGrid should have one interval tier (e.g. word) and one
point tier


form define parameters
	 natural Word_tier 1
	 natural Point_tier 2
	 comment Window size for analysis (ms)
	 natural Window 100
	 natural Min_f0 60
	 natural Max_f0 900
endform

nLongSounds = numberOfSelected("LongSound")
nSounds = numberOfSelected("Sound")
nTextGrids = numberOfSelected("TextGrid")

if (nLongSounds = 0 and nSounds =0) or nTextGrids = 0
	 pause Please select (one Sound  OR one LongSound) AND one TextGrid
endif

if nSounds
	 mySound = selected("Sound")
else
	 mySound = selected("LongSound")
endif
myTextGrid = selected("TextGrid")

clearinfo

select myTextGrid
word_tier_type = Is interval tier... 'word_tier'
point_tier_type = Is interval tier... 'point_tier'
if not word_tier_type
	 exit Sorry tier 'word_tier' should be an interval tier
endif
if point_tier_type
	 exit Sorry tier 'point_tier' should be a point tier
endif

nPoints = Get number of points... point_tier
printline [point] word [time]'tab$'F0'tab$'F1'tab$'F2'tab$'F3

for iPoint from 1 to nPoints
	 select myTextGrid
	 time = Get time of point... point_tier iPoint
	 word_interval = Get interval at time... word_tier time
	 word_label$ = Get label of interval... word_tier word_interval
	 select mySound
	 start = time - window/2000
	 end = time + window/2000
	 Extract part... start end yes
	 myPart = selected("Sound")
	 To Pitch... 0.01 min_f0 max_f0
	 mean_pitch = Get mean... 0 0 Hertz
	 Remove
	 select myPart
	 To Formant (burg)... 0 5 5500 0.025 50
	 f1 = Get value at time... 1 time Hertz linear
	 f2 = Get value at time... 2 time Hertz linear
	 f3 = Get value at time... 3 time Hertz linear
	 Remove
	 printline ['iPoint'] 'word_label$' ['start:3':'end:3'] 'tab
$''mean_pitch:0' 'tab$''f1:0' 'tab$''f2:0' 'tab$''f3:0'
	 select myPart
	 Remove
endfor

------------------------------------------------------------------------
-------------------------
    Equipe Prosodie et Représentation Formelle du Langage - salle A485
                 CNRS Laboratoire Parole et Langage (UMR 6057)
                    Université de Provence 29 avenue Schuman
                         13621 Aix-en-Provence cedex 1, France
    tel: +33-4-4295-3628    secr: +33-4-4295-3634   fax: +33-4-4295-3788
------------------------------------------------------------------------
--------------------------
Speech Prosody list      http://mailup.univ-mrs.fr/wws/info/speech-
prosody
Praat-users list                           http://groups.yahoo.com/
group/praat-users
Speech Prosody 2006 May 2-5    http://www.ias.et.tu-dresden.de/sp2006
------------------------------------------------------------------------
--------------------------

#2611 From: "danielheinefeddersen" <danielfeddersen@...>
Date: Thu Jun 15, 2006 3:12 pm
Subject: Phonetogram how to?
danielheinef...
Send Email Send Email
 
Hello i'm new to Praat. I have read how to get a phonetogram in
praat "create both a Pitch and an Intensity of a Sound. You then
select the
two together and choose Draw Phonetogram." But you have to have more
than one tone right? Are there anyone who can help me with a little
toturial or anything so i can make a phonetogram.

Daniel Feddersen

#2612 From: Paul Boersma <paul.boersma@...>
Date: Thu Jun 15, 2006 9:04 pm
Subject: Re: Weird Window Problem
paulboersma
Send Email Send Email
 
At 13:43 -0400 13-6-06, Geoffrey S. Nathan wrote:
>In an Editing
>window, whether maximized or smaller, I can't get to the buttons at the
>bottom of the screen (scroll bar, 'selection' etc.).

Widen the window so that the entire menu fits in one row. Then close the window
and click Edit again.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2613 From: Paul Boersma <paul.boersma@...>
Date: Thu Jun 15, 2006 9:14 pm
Subject: Re: help -source filter synthesis script
paulboersma
Send Email Send Email
 
At 21:39 -0700 13-6-06, shobha shekar wrote:
>Filter with one formant(in-line)... fi'max(50,fi'/15)
>--------------------error here

I am not surprised. Although you did not tell me what Praat's error message was,
I can see four mistakes:

1. no space after "formant";
2. a strange quote after the first "fi" (should be a space, I think);
3. a strange quote after the second "fi";
4. no space between the frequiency and the bandwidth.

>the objects "sound bada1,......... sound bada10" are not getting played

in the manual, please read the text below that example script.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#2614 From: Fabrice Mogini <fabrice.mogini@...>
Date: Sat Jun 17, 2006 9:55 pm
Subject: find highest amplitude in spectral slice
fabmog1
Send Email Send Email
 
Sorry to insist but no one answered my previous question, so I make
it simpler:

I would like to create a script that identifies the  highest and the
lowest amplitudes from a spectral slice
and print what these two frequencies are.

example:
Highest amplitude= freq112Hz

Lowest amplitude=freq 896.1Hz

Can anyone give me hints on what to do?

Thanks

           Fabrice Mogini

Fabrice Mogini
Email: fabrice.mogini@...




[Non-text portions of this message have been removed]

#2615 From: "adamjacks" <adamjacks@...>
Date: Sun Jun 18, 2006 4:41 pm
Subject: Periodogram
adamjacks
Send Email Send Email
 
Hi praat users,

Does anybody know how to script praat to create a periodogram?

Adam Jacks

#2616 From: "morag2505" <morag.jackson@...>
Date: Fri Jun 16, 2006 12:34 pm
Subject: Scripting
morag2505
Send Email Send Email
 
Hi there im wondering if any of you could tell me how to solve this
problem. Im looking to be able to take 1 seconds worth of a 20 second
wave file and use this one second to search through thousands of other
wav files for the same signature. Any of these wave files which do
have the same signature i would like to mark them in some way so as i
know which they are. I was told it could be done using DTW and
scripting but im a novice to this program and was directed here for
assistance. Any help would be much obliged.

Thanks.

#2617 From: "Reddy Sivaprasad, M." <mrsp78@...>
Date: Mon Jun 19, 2006 11:56 am
Subject: klatt synthesizer
mrsp78
Send Email Send Email
 
Dear colleagues

          Could you please guide me how to do parametric synthesis
(klatt synthesis) using Pratt.  I need to synthesize a voiced
consonant with variable Fo.


M. Reddy Sivaprasad

Messages 2588 - 2617 of 6386   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?
Messages 2588 - 2617 of 6386   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help