Mercurial > hg > emotion-detection-top-level
diff Code/Descriptors/Matlab/Common/AudioSpectralBandPower_Detection.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/Descriptors/Matlab/Common/AudioSpectralBandPower_Detection.m Wed Feb 13 11:02:39 2013 +0000 @@ -0,0 +1,18 @@ +function [] = AudioSpectralBandPower_Detection( sampleWavFileName, x, fs, frameLength, noOfFrames ) + +sampleFileName = sampleWavFileName( 1 : length( sampleWavFileName ) - 4 ); +FileName = [ sampleFileName '_ASBP.txt']; +FileID = fopen( FileName, 'w'); + +raw = x(:,1); +ASBP = AudioSpectralBandPower( raw, fs, noOfFrames, frameLength ); + +for i = 1 : noOfFrames + fprintf(FileID,'%d ',i); +% for j = 1: 24 + fprintf(FileID, '%s ',ASBP(i)); +% end + fprintf(FileID, '\n'); +end + +fclose( FileID ); \ No newline at end of file