Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all; close all; clc;
- tozsamosci=['a';'b';'c';'d';'e';'f';'g';'h'];
- haslo='/metoda/';
- N=8 %liczba wzorców
- M=10 %liczba powtórzeń na wzorzec
- p=12 %rząd predykcji
- wzorce-zeros(N,p) %wzorce średnich lpc
- wzorce_odl=zeros(N,1); %wzorce zawierające jedynie próg Q
- %------------WZYZNACZENIE WZORCÓW----------
- for i=1:N
- for j=1:M
- numer=int2str(j);
- if j<10
- numer=['0' numer];
- end;
- nazwa=strcat('/home/nerzia/Dokumenty/Matlab/anonimowa_baza_mowy/',tozsamosci(i,:),haslo,numer,'c.wav');
- [x,fs]=audioread(nazwa);
- %tutaj tworzy wzorce tożsamości w postaci wektora średnich lpc
- y=lpc(x,p); y=-y(2:p+1);
- wzorce(i,:)=wzorce(i,:)+y;
- end;
- end;
- wzorce=wzorce/M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement