comparison Code/Collation/get_Shimmer.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_Shimmer( 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 %-------------- get the shimmer metrics ----------------------
13 % SHIMMER: local \t dda \t apq3 \t apq5 \t apq11
14
15 metricName = '_shimmer_local';
16 metricFileName = [ dirName metricName '.txt'];
17 readValueFromFile( statsFileID, metricFileName, metricName );
18
19 metricName = '_shimmer_dda';
20 metricFileName = [ dirName metricName '.txt'];
21 readValueFromFile( statsFileID, metricFileName, metricName );
22
23 metricName = '_shimmer_apq3';
24 metricFileName = [ dirName metricName '.txt'];
25 readValueFromFile( statsFileID, metricFileName, metricName );
26
27 metricName = '_shimmer_apq5';
28 metricFileName = [ dirName metricName '.txt'];
29 readValueFromFile( statsFileID, metricFileName, metricName );
30
31 metricName = '_shimmer_apq11';
32 metricFileName = [ dirName metricName '.txt'];
33 readValueFromFile( statsFileID, metricFileName, metricName );
34
35 fprintf( statsFileID, '\n');
36
37