diode
عضو مميز
- إنضم
- 16 ديسمبر 2010
- المشاركات
- 1.128
- مستوى التفاعل
- 526
svp je suis en train de faire l'extraction des coefficients mfcc d'un fichier .wav, est ce que vous pouvez m'aider et me dire qu'elle est le problème avec ce code matlab ?? et merci cher frères
كود:
% Load a speech waveform
[d,sr] = wavread('sm1_cln.wav');
% Look at its regular spectrogram
subplot(411)
specgram(d, 256, sr);
% Calculate basic RASTA-PLP cepstra and spectra
[cep1, spec1] = rastaplp(d, sr);
% .. and plot them
subplot(412)
imagesc(10*log10(spec1)); % Power spectrum, so dB is 10log10
axis xy
subplot(413)
imagesc(cep1)
axis xy
% Notice the auditory warping of the frequency axis to give more
% space to low frequencies and the way that RASTA filtering
% emphasizes the onsets of static sounds like vowels
% Calculate 12th order PLP features without RASTA
[cep2, spec2] = rastaplp(d, sr, 0, 12);
% .. and plot them
subplot(414)
imagesc(10*log10(spec2));
axis xy
% Notice the greater level of temporal detail compared to the
% RASTA-filtered version. There is also greater spectral detail
% because our PLP model order is larger than the default of 8
[rasta and plp spectrograms]
% Append deltas and double-deltas onto the cepstral vectors
del = deltas(cep2);
% Double deltas are deltas applied twice with a shorter window
ddel = deltas(deltas(cep2,5),5);
% Composite, 39-element feature vector, just like we use for speech recognition
cepDpDD = [cep2;del;ddel];