Mercurial > hg > emotion-detection-top-level
comparison Code/Collation/get_Formants.m @ 4:92ca03a8fa99 tip
Update to ICASSP 2013 benchmark
author | Dawn Black |
---|---|
date | Wed, 13 Feb 2013 11:02:39 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:e1cfa7765647 | 4:92ca03a8fa99 |
---|---|
1 function [] = get_Formants( dirName, statsFileID ) | |
2 | |
3 % this function collates the results of all values calculated using the PRAAT software | |
4 | |
5 % For jitter and shimmer PRAAT returns only a single value, not a | |
6 % frame-by-frame calculation. Therefore we cannot find the varience etc. | |
7 | |
8 | |
9 % identify the speaker in the stats file | |
10 fprintf( statsFileID, '%s ', dirName ); | |
11 | |
12 | |
13 %-------------- get the formant metrics ---------------------- | |
14 % PRAAT returns a frame-by-frame value | |
15 % need to discard all formant information for unvoiced and silent frames. | |
16 vuv = detect_VoicedUnvoiced( [dirName '.wav'], 0 ); | |
17 | |
18 metricName = '_Formant_Burg'; | |
19 metricFileName = [ dirName metricName '.txt']; | |
20 readFormantValueFromFile( statsFileID, metricFileName, metricName, vuv ); | |
21 | |
22 metricName = '_Formant_all'; | |
23 metricFileName = [ dirName metricName '.txt']; | |
24 readFormantValueFromFile( statsFileID, metricFileName, metricName, vuv ); | |
25 | |
26 metricName = '_Formant_robust'; | |
27 metricFileName = [ dirName metricName '.txt']; | |
28 readFormantValueFromFile( statsFileID, metricFileName, metricName, vuv ); | |
29 | |
30 | |
31 fprintf( statsFileID, '\n'); | |
32 | |
33 |