Code covered by the BSD License
-
Energy_Entropy_Block(f,winLen...
-
ShortTimeEnergy(signal, windo...
-
SpectralCentroid(signal,windo...
-
SpectralEntropy(signal,window...
-
SpectralFlux(signal,windowLen...
-
SpectralRollOff(signal,window...
-
computeAllStatistics(fileName...
This function computes the average and std values for the following audio
-
computeFeaturesDirectory(clas...
% This function computes the audio features (6-D vector) for each .wav
-
computeHistError(Data1, Data2...
define histogram beans
-
myHist(Data)
-
statistic(feature, Start, End...
-
zcr(signal,windowLength, step...
-
Some Basic Audio Features
-
View all files
from
Some Basic Audio Features
by Theodoros Giannakopoulos
Use the provided m-files for computing the features of an audio classification problem
|
| ShortTimeEnergy(signal, windowLength,step);
|
function E = ShortTimeEnergy(signal, windowLength,step);
signal = signal / max(max(signal));
curPos = 1;
L = length(signal);
numOfFrames = floor((L-windowLength)/step) + 1;
%H = hamming(windowLength);
E = zeros(numOfFrames,1);
for (i=1:numOfFrames)
window = (signal(curPos:curPos+windowLength-1));
E(i) = (1/(windowLength)) * sum(abs(window.^2));
curPos = curPos + step;
end
%Max = max(E);
%med = median(E);
%m = mean(E);
%a = length(find(E>2*med))/numOfFrames;
%b = length(find(E<(med/2)))/numOfFrames;
%S_EnergyM = length(find(E>2*med))/numOfFrames;
%S_EnergyV = length(find(E<(med/2)))/numOfFrames;
%S_EnergyM = std(E);
%S_EnergyV = a;
|
|
Contact us at files@mathworks.com