view 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 source
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 );