function [] = AudioSpectralFlatness_Detection( sampleWavFileName, x, fs, frameLength, noOfFrames )

sampleFileName = sampleWavFileName( 1 : length( sampleWavFileName ) - 4 );
ASFFileName = [ sampleFileName '_ASF_norm.txt'];
ASFFileID = fopen( ASFFileName, 'w');

raw = x(:,1);
ASF = AudioSpectralFlatness( raw, fs, noOfFrames, frameLength );

for i = 1 : noOfFrames
    fprintf(ASFFileID,'%d ',i);
%     for j = 1: 24
         fprintf(ASFFileID, '%s ',ASF(i));
%     end
    fprintf(ASFFileID, '\n');
end

fclose( ASFFileID );