Code covered by the BSD License  

Highlights from
Manual Audio Annotation

image thumbnail
from Manual Audio Annotation by Theodoros Giannakopoulos
AudioAnnotation Demo v.1.0 is an open source demo implemented in Matlab(R) for manual segmentation a

parseFeatureExctraction(signal, FeatureStr, StatisticStr, win, step, Fs)
function [FeatureSeq, FeatureStat] = parseFeatureExctraction(signal, FeatureStr, StatisticStr, win, step, Fs)

% function [FeatureSeq, FeatureStat] = parseFeatureExctraction(signal, FeatureStr, StatisticStr, win, step)
%
% This function computes the feature sequence and feature statistic (value)
% of an audio signal. It is actually a parser of all feature functions
% available.
% 
% ARGUMENTS:
% signal:        the signal values
% FeatureStr:    the string of the feature name (and respective function)
% StatisticStr:  the feature statistic name (as used in Statistic.m)
% win:           the window length (in seconds)
% step:          the window step (in seconds)
% Fs:            the sampling freq.
% 
% RETURN VALUES:
% FearureSeq:    The feature sequence
% FeatureStat:   The featre statistic value


% Create command for feature extraction:
strCom = sprintf('FeatureSeq = %s(signal, win*Fs, win*Fs, Fs);', FeatureStr);

% Run command for feature extraction:
eval(strCom);

% Find statistic:
FeatureStat = statistic(FeatureSeq, 1, length(FeatureSeq), StatisticStr);


Contact us at files@mathworks.com