%% Extract Features from Audio Signal
% Read in an audio signal.

[audioIn,fs] = audioread('FemaleSpeech-16-8-mono-3secs.wav');

%
% Select features to extract using the Extract Audio Features task.
%

% Create and set up an audioFeatureExtractor object
extractor = audioFeatureExtractor( ...
    "spectralCrest",true,"spectralEntropy",true, ...
    "spectralFlux",true,"spectralRolloffPoint",true, ...
    "spectralSlope",true);

% Extract features from audio data
features = extract(extractor,audioIn);

% Display output summary
info(extractor)

% Copyright 2019 The MathWorks, Inc.