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 set the sort order of messages? Just click on the link in the date column. Your preferences will be remembered, so you don't have to do it again when you return.

Messages

  Messages Help
Advanced
Messages 3393 - 3422 of 6383   Oldest  |  < Older  |  Newer >  |  Newest
Messages 3393 - 3422 of 6383   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#3393 From: "hmills64" <harold.mills@...>
Date: Fri Nov 2, 2007 7:17 pm
Subject: using an environment variable in a dynamic menu script path
hmills64
Send Email Send Email
 
I would like to add an item to Praat's dynamic menu, and use an
environment variable to specify the directory in which the item's
script resides. Is this possible, or could it be made so? This would
be helpful to our group, and to people to whom we deliver our scripts.

For example, say I have a bunch of scripts in the directory
C:\Scripts, and an environment variable SCRIPT_DIR set to
"C:\Scripts". I would like to be able to specify a script path like
'environment$("SCRIPT_DIR")'\myscript.praat in the "Add to dynamic
menu" dialog instead of C:\Scripts\myscript.praat. This would allow
people to put their scripts in whatever directory they like, but use
the same buttons.ini file.

Thanks,

     Harold Mills

#3394 From: Damien Hall <halldj@...>
Date: Fri Nov 2, 2007 7:08 pm
Subject: Scripting to save output regularly and overwrite logfiles
hall_damien
Send Email Send Email
 
I'd be grateful for anyone's tips on how to incorporate into a script a command
to regularly save the object being worked on.  I am using a TextGrid to
annotate velar stop duration, and have scripted the process such that when I
save through the script, Praat writes to TextGrid, then reads the TextGrid and
outputs the results to a .txt logfile.  (This is as opposed to saving the
TextGrid outside the script and directly through the operating system, in the
same way as you would save any other file;  in that case, of course, the
TextGrid is saved but the script commands to read and output are not followed.)
  I would like to script Praat:

- to save regularly for me
- after each save, to overwrite the logfile for that particular TextGrid with
the new data, as opposed to adding all the data again from the line after the
previous entry.

I've searched the group archives for likely terms, but not found any threads
that answer these questions.  If it would be helpful for me to just attach my
script, please say so;  this is my first post to the user group!

Damien Hall

#3395 From: Jonas Lindh <lindsahpajken@...>
Date: Sat Nov 3, 2007 12:37 pm
Subject: RE: using an environment variable in a dynamic menu script path
lindsahpajken
Send Email Send Email
 
Hi there.
I think you might have missed the plugin function...
http://www.fon.hum.uva.nl/praat/manual/plug-ins.html
Best regards
Jonas

> To: praat-users@...
> From: harold.mills@...
> Date: Fri, 2 Nov 2007 19:17:55 +0000
> Subject: [praat-users] using an environment variable in a dynamic menu script
path
>
> I would like to add an item to Praat's dynamic menu, and use an
> environment variable to specify the directory in which the item's
> script resides. Is this possible, or could it be made so? This would
> be helpful to our group, and to people to whom we deliver our scripts.
>
> For example, say I have a bunch of scripts in the directory
> C:\Scripts, and an environment variable SCRIPT_DIR set to
> "C:\Scripts". I would like to be able to specify a script path like
> 'environment$("SCRIPT_DIR")'\myscript.praat in the "Add to dynamic
> menu" dialog instead of C:\Scripts\myscript.praat. This would allow
> people to put their scripts in whatever directory they like, but use
> the same buttons.ini file.
>
> Thanks,
>
>     Harold Mills
>
>
>
>
> To Post a message, send it to:   praat-users@eGroups.com
>
> To Unsubscribe, send a blank message to: praat-users-unsubscribe@eGroups.com
>
> To consult archives :          http://egroups.com/list/praat-users/
>
> Yahoo! Groups Links
>
>
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

#3396 From: "Boersma, P.P.G." <paul.boersma@...>
Date: Sat Nov 3, 2007 11:33 pm
Subject: Re: using an environment variable in a dynamic menu script path
paulboersma
Send Email Send Email
 
At 19:17 +0000 2-11-07, hmills64 wrote:
>environment variable to specify the directory in which the item's
>script resides.

you may be looking for the variable defaultDirectory$ (see Scripting 5.1 for
this variable and four other directory variables), although then again, I see
that you may want to use it *outside* the script.

The nested expansion that you propose (like the backquote mechanism in some
shell languages) does not exist in Praat. However, if your menu command addition
is done in a script itself, one can do:

    scriptDirectory$ = environment$ ("SCRIPT_DIR")
    Add action command... 'scriptDirectory$'/xx.praat ...

That said, I don't understand very well what you are trying to achieve. You say
you are delivering scripts to other people, but also talk of installing these
scripts by adding them to menus via a dialog in the script editor (rather than
via a separate installation script, such as in plugins). But if these people
install the scripts themselves via such a dialog, why would they need the
environment variable? They could just specify the directory of their choice.




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

#3397 From: "pangkolemi" <pangkolemi@...>
Date: Mon Nov 5, 2007 2:05 pm
Subject: pitch analysis
pangkolemi
Send Email Send Email
 
Hello, I just started working on my dissertation using PRAAT. The
problem I have is that I cannot open one table for pitch analysis with
average, maximum and minimum measurements and I have to press "get
pitch" and then "maximum" and "minimum" every time. I managed to get
the table once, but it happened randomly. Which is the right procedure
so as to get the measurements all together?
  Also, I cannot open my saved files from desktop because an error
occurs and I always have to open PRAAT and then the files. Isn't there
any shorter way to see my files? i do not understand why I cannot open
them from desktop. Thank you very much. Panagiota Gkolemi

#3398 From: "Harold Mills" <harold.mills@...>
Date: Mon Nov 5, 2007 4:54 pm
Subject: Re: using an environment variable in a dynamic menu script path
hmills64
Send Email Send Email
 
Thank you to Jonas Lindh and Paul Boersma for their replies to my query
about dynamic menus. I'm sorry my message wasn't clearer. We have a bunch of
scripts to distribute both within our group and to others, and as part of
the installation process we want to add some buttons into the dynamic menu
in some automatic but flexible fashion. We did not know about the plug-in
facility, which sounds like it's just what we need.

Thanks,

     Harold Mills


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

#3399 From: "epperdeflep" <eric@...>
Date: Tue Nov 6, 2007 3:53 pm
Subject: Getting individual values of pitch and intensity fast
epperdeflep
Send Email Send Email
 
I need to output pitch and intensity values of speech files in XML.
To do this, I create pitch and intensity objects and then iterate over
the number of values, get the pitch and intensity value and write them
to file.
In script language (without xml markup):

=== begin script ===
Read from file... blah.wav
To Intensity... 100 0.01
select Sound blah
To Pitch (ac)... 0.01 75 15 no 0.03 0.45 0.01 0.35 0.14 600

select Intensity blah
nrsamples = Get number of frames
fileappend 'output$' 'nrsamples' 'newline$'
for samplenr from 0 to nrsamples
   select Intensity blah
   intensityvalue = Get value in frame... samplenr
   select Pitch blah
   pitchvalue = Get value in frame... samplenr Hertz
   fileappend 'output$' 'intensityvalue' ,  'pitchvalue' 'newline$'
endfor
=== end script ===

This works fine, but is terribly slow. Is there a faster way to get
the individual sample points? Or a smarter way to get XML output?
(Reformatting the praat output afterwards is not an option)

#3400 From: Paul Boersma <paul.boersma@...>
Date: Tue Nov 6, 2007 11:03 pm
Subject: Re: Getting individual values of pitch and intensity fast
paulboersma
Send Email Send Email
 
At 15:53 +0000 6-11-07, epperdeflep wrote:
>for samplenr from 0 to nrsamples
>  select Intensity blah
>  intensityvalue = Get value in frame... samplenr
>  select Pitch blah
>  pitchvalue = Get value in frame... samplenr Hertz
>  fileappend 'output$' 'intensityvalue' ,  'pitchvalue' 'newline$'
>endfor

The following is faster. By looking into the Intensity object it does not have
to do the back-and-forth selection, and it writes to the file just once:

select Pitch blah
nrsamples = Get number of frames
text$ = "'nrsamples' 'newline$'"
for samplenr from 1 to nrsamples
    intensityvalue = Intensity_blah [samplenr]
    pitchvalue = Get value in frame... samplenr Hertz
    text$ = text$ + "'intensityvalue' ,  'pitchvalue' 'newline$'"
endfor
text$ >> 'output$'

--

Paul Boersma
Phonetic Sciences, University of Amsterdam
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#3401 From: "sayan04" <sayanaltai@...>
Date: Wed Nov 7, 2007 10:10 am
Subject: execute with variables
sayan04
Send Email Send Email
 
Hello,
Could pleae anybody remind me of how to pass a numeric and/or string
argument as variable to a script. I would like to do something like:

<execute myscript.praat 'filename$' 'path$' 'z'>

Sorry, I have the impression that this is already a FAQ, but I don't
find the post.

Many thanks in advance,
Sven

#3402 From: Paul Boersma <paul.boersma@...>
Date: Wed Nov 7, 2007 10:16 am
Subject: Re: execute with variables
paulboersma
Send Email Send Email
 
At 10:10 +0000 7-11-07, sayan04 wrote:
>  I would like to do something like:
>
>  <execute myscript.praat 'filename$' 'path$' 'z'>
>
>  Sorry, I have the impression that this is already a FAQ, but I don't
>  find the post.

It is not a FAQ, because the answer is in the manual. The above is
about right, but if your variables can contain spaces, you should
enclose all but the last in double quotes:

execute myscript.praat "'filename$'" "'path$'" 'z'
--

Paul Boersma
Phonetic Sciences, University of Amsterdam
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#3403 From: "canleya" <canleya@...>
Date: Wed Nov 7, 2007 7:39 am
Subject: How to mark phonem boundaries?
canleya
Send Email Send Email
 
"we applied an automatic alignment algorithm (based on a method of
dynamic time warping) to mark phoneme boundaries in the wave form."
(Krahmer & Swerts, 2007)

Does anyone know how to do that with praat?
Thanks in advance,

Kathrin Rothermich

#3404 From: "ferit013" <ferit013@...>
Date: Wed Nov 7, 2007 9:52 am
Subject: MFCC
ferit013
Send Email Send Email
 
Hello praat user,
i`m a new praat user.i need a script to extract the mfcc 1-12
features from a wav file for speech regocnition.
do you know now how i can write this script?
something in this part of the script is wrong, but i don`t know what
it is.
thank you and best wishes..
Ferit

select all
object = selected("Sound",1)
select object
# Convert input to MFCC
     if test_out$ <> "" and test_out$ <> "REUSEMFCC"

         Rename... Source
     endif
     if test_out$ <> "REUSEMFCC"
         select Sound Source
         noprogress To MFCC... 5 0.015 0.005 100.0 100.0 0.0
         Rename... Source
     endif

fileappend 'test_out$' 'MFCC:4',

#3405 From: Jonas Lindh <lindsahpajken@...>
Date: Wed Nov 7, 2007 1:34 pm
Subject: RE: How to mark phonem boundaries?
lindsahpajken
Send Email Send Email
 
See
latlcui.unige.ch/phonetique  from an earlier posting about forced alignment.
Best regards
Jonas

> To: praat-users@...
> From: canleya@...
> Date: Wed, 7 Nov 2007 07:39:49 +0000
> Subject: [praat-users] How to mark phonem boundaries?
>
> "we applied an automatic alignment algorithm (based on a method of
> dynamic time warping) to mark phoneme boundaries in the wave form."
> (Krahmer & Swerts, 2007)
>
> Does anyone know how to do that with praat?
> Thanks in advance,
>
> Kathrin Rothermich
>
>
>
>
>
>
> To Post a message, send it to:   praat-users@eGroups.com
>
> To Unsubscribe, send a blank message to: praat-users-unsubscribe@eGroups.com
>
> To consult archives :          http://egroups.com/list/praat-users/
>
> Yahoo! Groups Links
>
>
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

#3406 From: "Ruth Galloway" <funkylinguist@...>
Date: Wed Nov 7, 2007 1:38 pm
Subject: Practice stimuli in perception experiment
funkylinguist
Send Email Send Email
 
I'm setting up a perception experiment in Praat and I'm wondering if it is
possible to have
some practice stimuli before the experiment starts properly. I can't see how I
could write that
into the ExperimentMFC file. Does anyone know if this is possible?
Thanks,
Ruth.

#3407 From: "epperdeflep" <eric@...>
Date: Wed Nov 7, 2007 11:48 am
Subject: Current time and date
epperdeflep
Send Email Send Email
 
How do I get the current time and date in a variable in a script?

#3408 From: Daniel Hirst <daniel.hirst@...>
Date: Wed Nov 7, 2007 1:44 pm
Subject: Re: Current time and date
daniel_hirst
Send Email Send Email
 
> How do I get the current time and date in a variable in a script?
>
date$ = date$()



------------------------------------------------------------------------
-------------------------
    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
Speech Prosody 2008:05:6-9   Campinas, Brazil    http://www.sp2008.org
Momel-Intsint list           http://tech.groups.yahoo.com/group/momel-
intsint
Praat-users list                           http://groups.yahoo.com/
group/praat-users
------------------------------------------------------------------------
--------------------------

#3409 From: Jonas Lindh <lindsahpajken@...>
Date: Wed Nov 7, 2007 1:48 pm
Subject: RE: Current time and date
lindsahpajken
Send Email Send Email
 
date$ = date$ ()
echo 'date$'
best regards
Jonas

> To: praat-users@...
> From: eric@...
> Date: Wed, 7 Nov 2007 11:48:21 +0000
> Subject: [praat-users] Current time and date
>
> How do I get the current time and date in a variable in a script?
>
>
>
>
>
> To Post a message, send it to:   praat-users@eGroups.com
>
> To Unsubscribe, send a blank message to: praat-users-unsubscribe@eGroups.com
>
> To consult archives :          http://egroups.com/list/praat-users/
>
> Yahoo! Groups Links
>
>
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

#3410 From: Paul Boersma <paul.boersma@...>
Date: Wed Nov 7, 2007 1:56 pm
Subject: Re: Practice stimuli in perception experiment
paulboersma
Send Email Send Email
 
At 13:38 +0000 7-11-07, Ruth Galloway wrote:
>I'm setting up a perception experiment in Praat and I'm wondering if
>it is possible to have
>some practice stimuli before the experiment starts properly. I can't
>see how I could write that
>into the ExperimentMFC file.

There are basically two ways. One is to create a small additional
experiment and run that first; this would be appropriate if you don't
want to reveal your target stimuli to the participant before the
experiment starts. The other way is to simply start your experiment
until you are satisfied that the participant understands the task and
the sound intensity is right; you can then stop the experiment by
clicking the close button and Run again; there will be a new
randomization when the real experiment starts.
--

Paul Boersma
Phonetic Sciences, University of Amsterdam
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385

#3411 From: "andymcguiness" <andymcguiness@...>
Date: Thu Nov 8, 2007 11:30 am
Subject: Adding clicks from a text grid
andymcguiness
Send Email Send Email
 
I have made a script that finds onsets from the slope of the energy
curve of the signal, and writes onset times to a text grid. I would
like to hear the extracted onset times as clicks, to test whether they
sound accurate or not: is there an easy way to do this in Praat?

Andy McGuiness
Open University

#3412 From: "psibre" <steiner@...>
Date: Thu Nov 8, 2007 6:37 pm
Subject: Re: bug in replace_regex$ ?
psibre
Send Email Send Email
 
I've also run into this ?bug? recently. It seems that whenever
replace_regex$() is used to replace something other than a literal
string (i.e. anything with regex voodoo in it) with nothing, the empty
string is returned.

A workaround is to replace what you want to have deleted with a dummy
string you know will not interfere (i.e. cause false positives) and
wrap the replace_regex$() function in a normal replace$() to delete
all instances of the dummy string.

For example, while:

replace_regex$("foo bar baz", " ba[rz]", "", 0)

erroneously returns the empty string,

replace$(replace_regex$("foo bar baz", " ba[rz]", "%", 0), "%", "", 0)

works as expected, returning "foo".

Best wishes,

-Ingmar Steiner
_______________
Phonetics/Phonology Section
Department of Computational Linguistics and Phonetics
Saarland University

Office: Building C7 2, Room 5.06
Email: steiner@...
Phone: +49-681-302-4696
http://www.coli.uni-saarland.de/~steiner/

--- In praat-users@..., "cbrinckmann" <caren@...> wrote:
>
> Dear Praat users, dear Paul,
>
> I would like to use replace_regex$ to delete substrings from a string
> that match a certain pattern. However, replace_regex$ deletes
> _everything_ from the string when I use the empty string "" as
> replacement string - whereas replace$ doesn't.
>
> Have a look at the following snippet:
>
> ##############################
> clearinfo
> printline output: abc333abc
> # output: abc333abc
>
> outString$ = replace_regex$ ("abc333abc", "\d", "i", 0)
> printline output: 'outString$'
> # output: abciiiabc
> # just as expected
>
> outString$ = replace_regex$ ("abc333abc", "\d", "", 0)
> printline output: 'outString$'
> # output:
> # empty string! why?
>
> outString$ = replace$ ("abc333abc", "3", "", 0)
> printline output: 'outString$'
> # output: abcabc
> # here it works...
> ###############################
>
> Why does the following command produce an empty string? Is this a bug
> or a feature?
> outString$ = replace_regex$ ("abc333abc", "\d", "", 0)
>
> Maybe I'll see some of you at the ICPhS in Saarbrücken next week!
>
> Best
> Caren.
>

#3413 From: "psibre" <steiner@...>
Date: Fri Nov 9, 2007 11:41 am
Subject: Re: Adding clicks from a text grid
psibre
Send Email Send Email
 
Dear Andy,

one simple approach I could suggest is to turn the TextGrid tier into
a PointProcess (or simply create a PointProcess in the first place),
then synthesize it as a pulse train. E.g.

# Assuming you have your onset times on tier 1:
Extract tier... 1
Down to TableOfReal (any)
To Matrix
Transpose
To PointProcess
To Sound (pulse train)... 44100 1 0.05 2000

(This is slightly more awkward than converting directly from tier to
PointProcess, but should work regardless of labels or tier type.)

Although I'm not sure whether the resulting pulses sound like you want
your clicks to sound...

Best wishes,

-Ingmar Steiner
_______________
Phonetics/Phonology Section
Department of Computational Linguistics and Phonetics
Saarland University

Office: Building C7 2, Room 5.06
Email: steiner@...
Phone: +49-681-302-4696
http://www.coli.uni-saarland.de/~steiner/

--- In praat-users@..., "andymcguiness"
<andymcguiness@...> wrote:
>
> I have made a script that finds onsets from the slope of the energy
> curve of the signal, and writes onset times to a text grid. I would
> like to hear the extracted onset times as clicks, to test whether they
> sound accurate or not: is there an easy way to do this in Praat?
>
> Andy McGuiness
> Open University
>

#3414 From: Andrew McGuiness <andymcguiness@...>
Date: Sat Nov 10, 2007 4:29 pm
Subject: Re: Adding clicks from a text grid
andymcguiness
Send Email Send Email
 
INgamr - thanks for the script, tat's brilliant -

Andy McGuiness


---------------------------------
National Bingo Night. Play along for the chance to win $10,000 every week.
Download your gamecard now at Yahoo!7 TV.

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

#3415 From: "alex_selman" <alex_selman@...>
Date: Tue Nov 13, 2007 11:59 am
Subject: Interaction studies and radio data
alex_selman
Send Email Send Email
 
Hi,
I'm a new praat user, and have a couple of questions that I couldn't find
answers to in posts.

First, the data I'm using is a radio programme recorded into Praat from BBC
'listen again'
using Soundflower. Will there be any corruption of pitch data resulting from
this process? Or
any settings I should be aware of to optimize the data?

Second, my interest is pitch in interactions, rather than specifically in
production or
reception. As I understand it, in the pitch settings, the "voice" option is
optimized to reflect
vocal chords, and "intonation" for perception. Should I just choose one, or is
there a way to
optimize the readings?

Many thanks,

Alex.

#3416 From: "DrBeanz" <drbeanz@...>
Date: Thu Nov 15, 2007 11:11 pm
Subject: About Ltas analysis of Praat
DrBeanz
Send Email Send Email
 
Hi all,

I'm currently using Ltas to create power spectra for sounds we used in
the project.

Basically, we have sounds grouping into music, human voice and white
noise etc. I plan to create average power spectra graph for each sound
groups for comparing acoustic properties.

For each group of sounds (~50 samples)
Use Ltas with bins of 10 Hz for each sound, and then take "average"
over all of them to obtain the mean values for that sound group for
graph plotting.

However, there are a lot of negative values (in dB/Hz Pa, Ltas default
setting) at frequencies higher than 11 kHz. Am I doing the right things?
I thought they should be all positives as values indicating energy
levels across each frequency bins.

I'd like to know if I doing somethings wrong, using wrong parameters
or else.

Thanks a lot

Damon

#3417 From: Jonas Lindh <lindsahpajken@...>
Date: Fri Nov 16, 2007 6:19 pm
Subject: RE: About Ltas analysis of Praat
lindsahpajken
Send Email Send Email
 
Dear Damon.
dB is not is related to the smallest hearing level in Pa 0,00002 and therefore
some frequencies will have negative values as 0 is only related to this hearing
threshold.
Best regards
Jonas

> To: praat-users@...
> From: drbeanz@...
> Date: Thu, 15 Nov 2007 23:11:59 +0000
> Subject: [praat-users] About Ltas analysis of Praat
>
> Hi all,
>
> I'm currently using Ltas to create power spectra for sounds we used in
> the project.
>
> Basically, we have sounds grouping into music, human voice and white
> noise etc. I plan to create average power spectra graph for each sound
> groups for comparing acoustic properties.
>
> For each group of sounds (~50 samples)
> Use Ltas with bins of 10 Hz for each sound, and then take "average"
> over all of them to obtain the mean values for that sound group for
> graph plotting.
>
> However, there are a lot of negative values (in dB/Hz Pa, Ltas default
> setting) at frequencies higher than 11 kHz. Am I doing the right things?
> I thought they should be all positives as values indicating energy
> levels across each frequency bins.
>
> I'd like to know if I doing somethings wrong, using wrong parameters
> or else.
>
> Thanks a lot
>
> Damon
>
>
>
>
>
> To Post a message, send it to:   praat-users@eGroups.com
>
> To Unsubscribe, send a blank message to: praat-users-unsubscribe@eGroups.com
>
> To consult archives :          http://egroups.com/list/praat-users/
>
> Yahoo! Groups Links
>
>
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

#3418 From: "pere.vilarrubla" <pere.vilarrubla@...>
Date: Fri Nov 16, 2007 7:06 pm
Subject: extracting F1 and F2 values
pere.vilarrubla
Send Email Send Email
 
We are three Linguistics' students from Barcelona. We have just
started using Praat for a speech analisys subject. We need to
calculate the values of the first and second formants of the vowels in
a recorded speech in catalan. We have been considering the option of
extracting this values with a script after labeling the file with a
TextGrid. We found on the Internet one that extracts the values of the
F0 and whe don't know how to manipulate it to make it extract the F1
and F2 values.

We've been reading the help files, but we're only beginners and we
would appreciate all the help you could give us.

Thanks a million!

Cristina, Xesca and Pere

#3419 From: Daniel Hirst <daniel.hirst@...>
Date: Sat Nov 17, 2007 8:07 am
Subject: Re: extracting F1 and F2 values
daniel_hirst
Send Email Send Email
 
Cristina, Xesca and Pere wrote:

> We need to
> calculate the values of the first and second formants of the vowels in
> a recorded speech in catalan.
I have uploaded a script called "analyse intervals.praat" to the
files section of this site

	 http://uk.groups.yahoo.com/group/praat-users/files/Daniel%20Hirst/

   you can place the script in a folder containing two other folders -
one containing sounds and the other containing textgrids

If you then run the script it will calculate various F0, intensity
and formant values for the first and second half of each labelled
interval in the tier which you specify when you run the script.

It will skip intervals labelled "#" or "_" or with no labels.
The output will go to the info window which you can then save to a
text file. The output format can be directly read into a statistics
program such as R. (see my following message)

let me know if you have any problems - it should be very easy to
adapt this script to what you are trying to do.

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
Speech Prosody 2008:05:6-9   Campinas, Brazil    http://www.sp2008.org
Momel-Intsint list           http://tech.groups.yahoo.com/group/momel-
intsint
Praat-users list                           http://groups.yahoo.com/
group/praat-users
------------------------------------------------------------------------
--------------------------

#3420 From: Daniel Hirst <daniel.hirst@...>
Date: Sat Nov 17, 2007 8:21 am
Subject: Statistics with R
daniel_hirst
Send Email Send Email
 
Harald Baayen, formerly at Max Planck Institute and now at the
University of Alberta, Edmonton, has written an excellent
introduction to statistics for linguists which I highly recommend
entitled:

	 Analyzing Linguistic Data. A Practical Introduction to Statistics
using R

It is aimed specifically at linguists with little or no mathematical
background and provides a hands on approach to statistics using the
very powerful (and free!) multiplatform statistics package from the R
project. He provides detailed instructions in the introduction how to
download and install the program.

The book is shortly to be published by Cambridge University Press but
in the meantime it can be downloaded as a pdf file from the following
link.

	 www.mpi.nl/world/persons/private/baayen/publications/baayenCUPstats.pdf

The initiative of making the book freely available prior to
publication is to be strongly encouraged and I hope many of you will
not only download your own free copy but will also encourage your
library to buy a hard copy of the book.

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
Speech Prosody 2008:05:6-9   Campinas, Brazil    http://www.sp2008.org
Momel-Intsint list           http://tech.groups.yahoo.com/group/momel-
intsint
Praat-users list                           http://groups.yahoo.com/
group/praat-users
------------------------------------------------------------------------
--------------------------

#3421 From: "domingo román" <domingo.roman@...>
Date: Sat Nov 17, 2007 11:32 pm
Subject: Re: extracting F1 and F2 values
domingo_roma...
Send Email Send Email
 
I have a tutorial (in Spanish). There is a chapter about this topic.

http://www.domingo-roman.net/manual_analisis_acustico.htm




2007/11/17, Daniel Hirst <daniel.hirst@...>:
>
>   Cristina, Xesca and Pere wrote:
>
> > We need to
> > calculate the values of the first and second formants of the vowels in
> > a recorded speech in catalan.
> I have uploaded a script called "analyse intervals.praat" to the
> files section of this site
>
> http://uk.groups.yahoo.com/group/praat-users/files/Daniel%20Hirst/
>
> you can place the script in a folder containing two other folders -
> one containing sounds and the other containing textgrids
>
> If you then run the script it will calculate various F0, intensity
> and formant values for the first and second half of each labelled
> interval in the tier which you specify when you run the script.
>
> It will skip intervals labelled "#" or "_" or with no labels.
> The output will go to the info window which you can then save to a
> text file. The output format can be directly read into a statistics
> program such as R. (see my following message)
>
> let me know if you have any problems - it should be very easy to
> adapt this script to what you are trying to do.
>
> 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
> Speech Prosody 2008:05:6-9 Campinas, Brazil http://www.sp2008.org
> Momel-Intsint list http://tech.groups.yahoo.com/group/momel-
> intsint
> Praat-users list http://groups.yahoo.com/
> group/praat-users
> ----------------------------------------------------------
> --------------------------
>
>
>



--
Domingo Román Montes de Oca
--------------------------------------------
www.domingo-roman.net


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

#3422 From: "Ruth Galloway" <funkylinguist@...>
Date: Tue Nov 20, 2007 1:26 pm
Subject: Characters with accents in an experiment file
funkylinguist
Send Email Send Email
 
I'm piloting an experiment at the moment having written several Experiment MFC
files. I have
the same experiment for English, French and German listeners. The rectangle in
which they
click with their response contains an "a-umlaut" character in German, and an
"e-acute"
accent charcter in French. I have tried typing these into the script using the
commands I
found in the Praat manual, but they don't work as it tries to read them as part
of the "" marks
surrounding the text to be displayed.
Does anyone have any ideas on how I might get these characters to appear
properly on
screen?
Thanks, Ruth.

Messages 3393 - 3422 of 6383   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?
Messages 3393 - 3422 of 6383   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