Speaker verification
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello,
I get a speaker verification matlab code on the internet. But I can't understand all the lines. Can someone explain to me the following lines?
for i=1:3
Speaker_name=Au_dir(i).name;
Speaker_path=strcat(data_path,Speaker_name);
Speaker_data=getInfo(Speaker_path, 'wav');
len=length(Speaker_data);
Speaker_mix=randperm(len);
Speaker_data=Speaker_data(Speaker_mix);
Speaker_train=Speaker_data(1:300);
Speaker_intest=Speaker_data(301:len);
All_data=getInfo(data_path, 'wav');
all_len=length(All_data);
Thank you for your kind support.
댓글 수: 1
답변 (1개)
Wayne King
2011년 11월 3일
Hi, this code appears to be just reading the data from the .wav file for a particular speaker
Speaker_name=Au_dir(i).name;
Speaker_path=strcat(data_path,Speaker_name);
Speaker_data=getInfo(Speaker_path, 'wav');
I'm guessing that getInfo is not a MATHWORKS function. Is there a getInfo.m file in the code you downloaded?
Then, you get the length of that data and obtain a random shuffling (permutation) of the integers from 1 to the number of samples in the data.
len=length(Speaker_data);
Speaker_mix=randperm(len);
Then, you reshuffle the data based on that permutation. And create a training set of the first three hundred samples of the shuffled data and a test set of samples 301 to the end of the speaker's sample.
Speaker_data=Speaker_data(Speaker_mix);
Speaker_train=Speaker_data(1:300);
Speaker_intest=Speaker_data(301:len);
Then it looks like it reads all the wav files in. I'm guessing to see if it can identify the correct speaker.
All_data=getInfo(data_path, 'wav');
all_len=length(All_data);
댓글 수: 4
Dr. Nitisha Aggarwal
2011년 11월 5일
can u please write the whole code....i urgently needs a project on speech recognition
참고 항목
카테고리
Help Center 및 File Exchange에서 Speech Recognition에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!