annotate 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
rev   line source
Dawn@4 1 function [] = get_Shimmer( dirName, statsFileID )
Dawn@4 2
Dawn@4 3 % this function collates the results of all values calculated using the PRAAT software
Dawn@4 4
Dawn@4 5 % For jitter and shimmer PRAAT returns only a single value, not a
Dawn@4 6 % frame-by-frame calculation. Therefore we cannot find the varience etc.
Dawn@4 7
Dawn@4 8
Dawn@4 9 % identify the speaker in the stats file
Dawn@4 10 fprintf( statsFileID, '%s ', dirName );
Dawn@4 11
Dawn@4 12 %-------------- get the shimmer metrics ----------------------
Dawn@4 13 % SHIMMER: local \t dda \t apq3 \t apq5 \t apq11
Dawn@4 14
Dawn@4 15 metricName = '_shimmer_local';
Dawn@4 16 metricFileName = [ dirName metricName '.txt'];
Dawn@4 17 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 18
Dawn@4 19 metricName = '_shimmer_dda';
Dawn@4 20 metricFileName = [ dirName metricName '.txt'];
Dawn@4 21 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 22
Dawn@4 23 metricName = '_shimmer_apq3';
Dawn@4 24 metricFileName = [ dirName metricName '.txt'];
Dawn@4 25 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 26
Dawn@4 27 metricName = '_shimmer_apq5';
Dawn@4 28 metricFileName = [ dirName metricName '.txt'];
Dawn@4 29 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 30
Dawn@4 31 metricName = '_shimmer_apq11';
Dawn@4 32 metricFileName = [ dirName metricName '.txt'];
Dawn@4 33 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 34
Dawn@4 35 fprintf( statsFileID, '\n');
Dawn@4 36
Dawn@4 37