Speaker verification over telephone channel using RASTA

Hello,
I am using the following code for speaker verification. I want to include RASTA ( http://labrosa.ee.columbia.edu/matlab/rastamat/) since my database is recorded over the telephone channel. Please can someone help me to integrate RASTA in the following:
clc
clear
data_path='E:\Speech Database\VoIp';
all_path=dir(data_path); % get names of all wave files
cd folder_path='E:\Speech Database\NewFolder1'; %change the work path to current folder
spk_num=length(all_path); % the number of speakers
for i=1:spk_num
[Speaker_data,fs]=readwav(all_path(i).name); %read in samples
len=length(Speaker_data); %sample length
half_len=floor(len/2); %half length
Speaker_train=Speaker_data(1:half_len);%half of data, for training
Speaker_intest=Speaker_data(half_len+1:len);%other half, for testing
feature_train=melcepst(Speaker_train,fs,'0d'); %extract features
feature_intest=melcepst(Speaker_intest,fs,'0d');
mix=Gmm_train(feature_train,32); %train a speaker model
Pin(i) =GMM_post(feature_intest,mix); %inset test
%%imposter
for j=1:spk_num
index=1;
if j~=i %if it is a different speaker
[Speaker_out,fs]=readwav(all_path(j).name); %read in samples
feature_outtest=melcepst(Speaker_out,fs,'0d'); %extract features
Pout(i,index)=GMM_post(feature_outtest,mix); %outset test
index=index+1;
end
end
end
Thank you for your help and support.

Respuestas (0)

Categorías

Más información sobre Verification, Validation, and Test en Centro de ayuda y File Exchange.

Preguntada:

el 6 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by