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