%% Extract GTCC from Audio Signal
% Get the gammatone cepstral coefficients for an audio file using default settings. Plot the results.

[audioIn,fs] = audioread('Counting-16-44p1-mono-15secs.wav');

[coeffs,~,~,loc] = gtcc(audioIn,fs);

t = loc./fs;

plot(t,coeffs)
xlabel('Time (s)')
title('Gammatone Cepstral Coefficients')
legend('logE','0','1','2','3','4','5','6','7','8','9','10','11','12', ...
    'Location','northeastoutside')

%
% Copyright 2018 The MathWorks, Inc.