How to get frequency using auto-correlation ?

1 Ansicht (letzte 30 Tage)
kynopp
kynopp am 12 Apr. 2019
Kommentiert: Brian Hemmat am 31 Dez. 2019
Hello, I need to get fundamental frequency using auto-correlation function. I have 3 5 second speech recordings. It has been told to me that I should use hamming window. I need to split a recording into smaller parts and then use autocorrelation for every single part. At the end I have to show that frequency on a graph. I would be thankful for any help.
clear all;
[y, fs] = audioread('kid.wav');
frame_duration= 0.1;
frame_len = frame_duration*fs;
fs= 44100;
f_size= fs*frame_duration;
n_f=round(length(y)/f_size);
temp=0;
w= hamming(512);
for i=1 : n_f
frame(i,:)= (y(temp +1 : temp + f_size));
temp= temp+f_size;
end
  1 Kommentar
Brian Hemmat
Brian Hemmat am 31 Dez. 2019
Take a look at the pitch function in Audio Toolbox. The default algorithm, normalized corrrelation function, does basically what you're describing.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by