Marie-Catherine de Marneffe & Micha Elsner

LING 5050 - Technical tools for linguists

Homework 3

DUE: Friday June 5, 2020 (no late homework accepted!)

Part I.

We have seen in class that if we have the word from which the vowel comes from, we can do more interesting analyses. If you have not already done so, modify your Python code so that it outputs a tab-delimited file containing all the following information:

  • the filename
  • the word
  • duration of the word
  • the vowel
  • duration of the vowel
  • F1 at midpoint in Hz
  • F2 at midpoint in Hz
  • F1 bark
  • F2 bark

The durations and the barks should have two decimal points, the Hertz no decimal point.

Take the names of the TextGrid files to process as command-line arguments; you may assume that the .wav files corresponding to them have the same names, except for the suffix. (That is, foo.TextGrid will have a corresponding foo.wav.)

The first line of the file needs to be the following header:

Filename Word WDuration Vowel VDuration F1_Hz F2_Hz F1_bark F2_bark

The script should work correctly on a TextGrid produced by MAUS; it should print formants for vowels and only vowels; it should be readable by R using read.table. I will verify your script by running it on my own sound file and TextGrid.

Part II.

You will create two vowel space plots, in R, given the 10 words you recorded at the beginning of the week. For each vowel point, the graphs should plot the word. The first graph has to be created starting from the TextGrid that you manually annotated. You should run your script from Part I to extract the necessary information from the TextGrid. The second graph has to come from the TextGrid that you got back from MAUS.

Make sure the graphs have appropriate labels: x-axis, y-axis and main labels!

Attach a document that contains:

  1. the graph you obtained from the TextGrid you manually annotated
  2. the graph you obtained from the TextGrid you got back from MAUS.
  3. the transcription file you gave to MAUS.
  4. an explanation of the transcription file above, making sure to comment on whether the way you provided the transcription makes sense or not
  5. an explanation of how you modified the Praat script to run on the TextGrid you got back from MAUS.
  6. a comment on the differences/similarities of the two graphs you made.