You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i just wanted to point out that there is something off in the NFCC calculations in torchaudio that is not present in pytorchaudio and therefore seems to not be carried over from there. I run some code that uses pytorchaudio to compute pitch using the kaldi method
Kaldi pitch extraction is not exposed by torchaudio, but you can get NFCCs using the functional__compute_ncc function. But then I get confused as while this code (using the native pitch detection), I get nothing like the python output in NFCCs
origSoundFile<-"/Users/frkkan96/Desktop/a1.wav"audio= transform_to_tensor(audiofile_loader(filepath=origSoundFile,
offset=beginTime,
duration=(endTime-beginTime), #A duration of 0 seems to be interpreted as the complete fileunit="time"))
waveform<-audio[[1]]
sample_rate<-audio[[2]]
windowShift<-10pitch<-functional_detect_pitch_frequency(waveform,
sample_rate=sample_rate,
frame_time=windowShift/1000,
win_length=windowSize,
freq_low=minF,
freq_high=maxF) # Expects secondsnfcc<-functional__compute_nccf(waveform,
sample_rate=sample_rate,
frame_time=windowShift/1000,
freq_low=minF)
Optimally, these two R functions should correspond in dimensions with the python interface ones, and with identical window shift lengths (10ms in this case), the dimensions should be the same from detect_pitch and compute_nfcc, right?
The text was updated successfully, but these errors were encountered:
i just wanted to point out that there is something off in the NFCC calculations in torchaudio that is not present in pytorchaudio and therefore seems to not be carried over from there. I run some code that uses pytorchaudio to compute pitch using the kaldi method
and when I then look at the output, I am convinced that what I actually got was values from windowed portions of the signal.
Kaldi pitch extraction is not exposed by torchaudio, but you can get NFCCs using the functional__compute_ncc function. But then I get confused as while this code (using the native pitch detection), I get nothing like the python output in NFCCs
Optimally, these two R functions should correspond in dimensions with the python interface ones, and with identical window shift lengths (10ms in this case), the dimensions should be the same from detect_pitch and compute_nfcc, right?
The text was updated successfully, but these errors were encountered: