Marie-Catherine de Marneffe & Micha Elsner
LING 5050 - Technical tools for linguists
DUE: Friday June 5, 2020 (no late homework accepted!)
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 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.
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: