diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Code/Collation/get_Shimmer.m	Wed Feb 13 11:02:39 2013 +0000
@@ -0,0 +1,37 @@
+function [] = get_Shimmer( dirName, statsFileID )
+
+% this function collates the results of all values calculated using the PRAAT software 
+
+% For jitter and shimmer PRAAT returns only a single value, not a
+% frame-by-frame calculation. Therefore we cannot find the varience etc.
+
+
+    % identify the speaker in the stats file
+    fprintf( statsFileID, '%s ', dirName );
+
+%-------------- get the shimmer metrics ----------------------
+%     SHIMMER: local \t dda \t apq3 \t apq5 \t apq11
+
+    metricName = '_shimmer_local';
+    metricFileName = [ dirName metricName '.txt'];
+    readValueFromFile( statsFileID, metricFileName, metricName );
+
+    metricName = '_shimmer_dda';
+    metricFileName = [ dirName metricName '.txt'];
+    readValueFromFile( statsFileID, metricFileName, metricName );
+    
+    metricName = '_shimmer_apq3';
+    metricFileName = [ dirName metricName '.txt'];
+    readValueFromFile( statsFileID, metricFileName, metricName );
+    
+    metricName = '_shimmer_apq5';
+    metricFileName = [ dirName metricName '.txt'];
+    readValueFromFile( statsFileID, metricFileName, metricName );
+    
+    metricName = '_shimmer_apq11';
+    metricFileName = [ dirName metricName '.txt'];
+    readValueFromFile( statsFileID, metricFileName, metricName );
+    
+    fprintf( statsFileID, '\n');
+    
+    
\ No newline at end of file