Home > other >  Matlab voice encryption, has been an error when I run into a binary, want to ask do you have any bos
Matlab voice encryption, has been an error when I run into a binary, want to ask do you have any bos

Time:09-20

clear all;
CLC

Fs=8000; % voice signal sampling frequency of 8000
X=audioread (' E: \ aleem walji av);
T=(0: length (x) - 1)/8000;
Y=FFT (x, 2048); % 2048 points FFT transform of signal do
F=fs * (0:10 23)/2048;

Figure (1)
Subplot (2, 2, 1);
The plot (t, x) % do original speech signal time domain graph
grid on; The axis tight;
The title (' original speech signal ');
Xlabel (' time (s) ");
Ylabel (' margin ');

Subplot (2,2,2);
The plot (f, abs (24) (1:10) Y) % do original speech signal FFT spectrum
grid on; The axis tight;
The title (' original speech signal FFT spectrum)
Xlabel (' Hz);
Ylabel (' margin ');
% sound (x)
% pretreatment of speech signal (original signal to expand 10000 times)
X1=ceil (10000 * x); % variable integer
Y1=FFT (x1, 2048);

% figure (2)
Subplot (2, 2, 3);
The plot (t, x1) % pretreatment of speech signal time domain graph
grid on; The axis tight;
The title (' pretreatment of speech signal ');
Xlabel (' time (s) ");
Ylabel (' margin ');

Subplot (2, 2, 4-trichlorobenzene);
The plot (f, abs (Y1 (1:10 24))) % pretreatment of speech signal FFT spectrum
grid on; The axis tight;
The title (' pretreatment of speech signal FFT spectrum)
Xlabel (' Hz);
Ylabel (' margin ');
% sound (x1)


X2=dec2bin (x1); The decimal % will voice signal into 2 into the system
  • Related