Hello all
I am using librosa to calculate the average pitch of audio samples.
following is the code snippet :
def avg_pitch(wav):
return np.mean(librosa.yin(wav,sr=16000,fmin=65, fmax=2093))
pitch=[]
for file in files:
x,_=librosa.load(file, sr=16000)
pitch=np.append(pitch,avg_pitch(x))
print(np.mean(pitch))
But I am getting very high pitch ie above 300 in all classes, In a Hindi language dataset, this should not be the case. It should be around 250.
Another question is are these pitches in Hz?
Please guide.