Skip to content

Commit

Permalink
read from formant.txt files based on config.txt
Browse files Browse the repository at this point in the history
formant.txt files now do not all have to have the same exact format.
You can have extra columns, rearrange the columns etc. Just define the
name of the relevant column for each variable in config.txt as:
VARIABLE : column name   # note

Note: don’t change the VARIABLE
  • Loading branch information
mishaschwartz committed Jun 4, 2014
1 parent bba95db commit 23c03d1
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 68 deletions.
28 changes: 28 additions & 0 deletions config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARPABET : vowel # arpabet vowel token (with or without stress)
STRESS : stress # vowel stress (1 = primary, 2 = secondary, 0 = no stress)
WORD : word # word in which the vowel occurs (orthography)
INDEX : index # index of the vowel in the word (ex. in ['W','ER1','D'] the vowel has an index of 1)
F1 : F1 # first formant
F2 : F2 # second formant
TIME : t # time in the sound file at which the formants were measured (seconds)
WORD PRONUNCIATION : allPhones # arpabet pronunciation of the whole word (as a python list ex. ['W','ER1','D'])
MAX FORMANTS : nFormants # the maximum number of formants setting when the F1 and F2 were measured
BEGINNING : beg # time in the sound file the vowel starts at (seconds)
END : end # time in the sound file (seconds)
## everything below this is optional but some options will be limited if they are not implemented
## Note that all the duration measurements (F1@20% etc.) must all be given or none
F1@20% : F1@20% # F1 value (Hz) at 20% of the vowel duration
F2@20% : F2@20% # F2 value (Hz) at 20% of the vowel duration
F1@35% : F1@35% # F1 value (Hz) at 35% of the vowel duration
F2@35% : F2@35% # F2 value (Hz) at 35% of the vowel duration
F1@50% : F1@50% # F1 value (Hz) at 50% of the vowel duration
F2@50% : F2@50% # F2 value (Hz) at 50% of the vowel duration
F1@65% : F1@65% # F1 value (Hz) at 65% of the vowel duration
F2@65% : F2@65% # F2 value (Hz) at 65% of the vowel duration
F1@80% : F1@80% # F1 value (Hz) at 80% of the vowel duration
F2@80% : F2@80% # F2 value (Hz) at 80% of the vowel duration
DURATION : dur # duration of the vowel (seconds)
PRECEDING PHONE : pPhone # preceding arpabet phone
FOLLOWING PHONE : fPhone # following arpabet phone
CELEX : # celex vowel token (optional - this will be automatically generated otherwise)
ALT MEASUREMENTS : poles # lists of formant measurements at 3,4,5,6 maximum formants (ex. [F1@3,F2@3][F1@4,F2@4][F1@5,F2@5][F1@6,F2@6])
Loading

0 comments on commit 23c03d1

Please sign in to comment.