how to build a neural network with inputs as audio features extracted with cqcc and pca applied to them and output to classify which is spoof or genuine, using asvspoof2017 dataset

조회 수: 4(최근 30일)
pranav reddy
pranav reddy 2021년 2월 19일
댓글: pranav reddy 2021년 2월 25일
%% Feature extraction for training data
% extract features for GENUINE training data and store in cell array
disp('Extracting features for GENUINE training data...');
genuineFeatureCell = cell(size(genuineIdx));
parfor i=1:length(genuineIdx)
filePath = fullfile(pathToDatabase,'ASVspoof2017_V2_train',filelist{genuineIdx(i)});
[x,fs] = audioread(filePath);
genuineFeatureCell{i}= cqcc(x, fs, 96, fs/2, fs/2^10, 16, 29, 'ZsdD');
% genuine pca
disp('genuine pca');
for j=1:length(genuineIdx)
net = feedforwardnet([5,5,5],'traingd');
net = train(net,genuinePCA);

채택된 답변

Shashank Gupta
Shashank Gupta 2021년 2월 22일
Hi pranav,
You need to read audio file and extract feature through cqcc. Check out this link. Here are many example on how to extract features in audio files. Once it is done you have to reduce the dimensionality and thus use PCA which I think you have already done in the code above. The last step you mention is classification step. There are many ways to classify them you can use sequencial model to the same. Here is the link for your help. You can also use typical classifier such as SVM or even KMeans. Just visualise your data after PCA and decide about the approach you want to go with.
I hope this helps.

추가 답변(0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by