-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathExampleScript.m
More file actions
35 lines (20 loc) · 932 Bytes
/
Copy pathExampleScript.m
File metadata and controls
35 lines (20 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
addpath(genpath('.'))
sLibrariesPath=''; % Add here the path to the libraries required to use AVCA
addpath(genpath(sLibrariesPath))
sFile='./Audios/asra.wav';
%% Obtaining statistics of the different features
%% Perturbation features
mFeaturesFl=PerturbationFluctuationVoice_avca(sFile);
%% Regularity features
mFeaturesReg=RegularityVoice_avca_stats (sFile);
%% Complexity features
mFeaturesNDA=NDAVoice_avca_stats(sFile);
%% Spectral and cepstral features
mFeaturesCeps= SpectralCesptralVoice_avca(sFile);
%% Modulation spectrum features
mFeaturesMS=MSVoice_avca(sFile); % The algorithm may provide NaNs when there is no voice signal (silences)
%% Single vector containing all features
vFeatures=[mFeaturesFl, mFeaturesReg, mFeaturesNDA...
statsFeats(mFeaturesCeps), statsFeats(mFeaturesMS)];
%% Using a single function to obtain feature statistics
[ vFeatures, caNamesFeatures ] = AVCA_features_stat( sFile );