The sampling is needed to change the continous speech signal to be discreet speech signal. The code in m-file to do this is very simple. You just write the code like below,
[y]=wavread('C:\WINDOWS\Media\PSD\peno2.wav');
Variable array [y] is the variable which is contained with the amplitude of signal in each time depend on the frequency sampling. The parameter in the wavread function is the location of the wav file. Importantly to notice that the location has to be located in between sign ". You can add the frequency sampling by add the parameter in the wavread function.
SNRdB=20;
SNR=10^(SNRdB/10);
y=awgn(y(1:16000),SNRdB,'measured');
The signal processing research usually needed the contaminated speech signal as the performance evaluation of system. In the code below is the contaminating speech signal with the white noise signal which its amplitude of contaminating depend on the decibels of noise. White noise is noise with the normal distribution of signal.SNRdB is the signal to noise ratio target in the decibels. The y is the signal input and output before and after it is contaminated. If you need the code you can sen the request to me. I hope this can be helps!!!
Tidak ada komentar:
Posting Komentar