annotate Code/Collation/get_Jitter.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_Jitter( 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 jitter metrics -------------------
Dawn@4 13 % JITTER: ddp \t local \t ppq5 \t rap \t
Dawn@4 14
Dawn@4 15 metricName = '_jitter_ddp';
Dawn@4 16 metricFileName = [ dirName metricName '.txt'];
Dawn@4 17 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 18
Dawn@4 19 metricName = '_jitter_local';
Dawn@4 20 metricFileName = [ dirName metricName '.txt'];
Dawn@4 21 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 22
Dawn@4 23 metricName = '_jitter_ppq5';
Dawn@4 24 metricFileName = [ dirName metricName '.txt'];
Dawn@4 25 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 26
Dawn@4 27 metricName = '_jitter_rap';
Dawn@4 28 metricFileName = [ dirName metricName '.txt'];
Dawn@4 29 readValueFromFile( statsFileID, metricFileName, metricName );
Dawn@4 30
Dawn@4 31
Dawn@4 32 fprintf( statsFileID, '\n');
Dawn@4 33
Dawn@4 34