%% Extract VGGish Embeddings
% Read in an audio file.

[audioIn,fs] = audioread('MainStreetOne-16-16-mono-12secs.wav');

%
% Call the vggishFeatures function with the audio and sample rate to extract VGGish feature embeddings from the audio.

featureVectors = vggishFeatures(audioIn,fs);

%
% The vggishFeatures function returns a matrix of 128-element feature vectors over time.

[numHops,numElementsPerHop,numChannels] = size(featureVectors)

% Copyright 2020 The MathWorks, Inc.