Skip to content

pandabar/praat

Repository files navigation

praat

Here you can find several scripts that I have used for different purposes.

  • Klaatcont: this script creates a continuum between two vowels using Klatt grids. The results are not wonderful (the resulting sounds are not very human-like) but if you add more parameters (pitch, more formants, etc) then it should sound a bit better.
  • Concatenator: unfortunately, when it comes to concatenating sounds, Praat can be a bit annoying since the elements to be concatenated must show in the Objects window in the desired order.
  • Continuum: this is the same as Klattcont but with resynthesis instead of the Klatt grid. The results are even worse, although I think you can get better results if the source comes from a vowel that is similar to the target vowel.
  • The extractor takes a .wav file and a TextGrid and extracts intervals according to a given criterion.
  • Both Get_formants and Vowels will give you a table with formant values. The former takes a bunch of .wav files consisting of one single vowel, and Vowels takes a long sound file with its corresponding TextGrid and yields a table with the formant values and duration of all the vowels in it. Vowels needs a TextGrid with two tiers (CV and (IPA), and it does not extract the sounds, so you don't end up with a lot of objects in your Objects window.
  • Both move files and scaling do not need too much explanation (respectively, they move files from one folder to another, and scale all files to 70 dB).
  • textgrid_creator Generates TextGrids for an entire batch of sound files. The assumption is that all the words have the same number of segments (the script assumes 5) so the generated TexGrids have 4 boundaries each. The script semiautoann goes one step further and feeds the TextGrid with the corresponding labels, which come from a Strings list. For this you need the sound files and a plain .txt file with the transcription.
  • cleantgs Is a new addition! I have spent some time analysing a non-native corpus (Gut 2009) and sometimes the tiers are not always in the same order (also, not all of the files have the same number of tiers; fortunately, the tiers I was interested in were all there!). So this script extracts the tiers I am interested in analysing, and then it merges them into one TextGrid. Then the tiers are rearranged in case they were in a different order.

About

Praat scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published