When I use the function below, I wonder how to calculate the length of one frame as time unit.
librosa.feature.melspectrogram(y=None, sr=22050, S=None, n_fft=2048, hop_length=512, power=2.0, **kwargs)
Under default settings, is it correct to calculate frame length in the following way?
frames length = n_fft / sr = 2048 / 22050 = 0.0929 s = 93 ms
Then, if I want to change frames length to 23 ms, is it correct to set n_fft to 508? (508 / 22050 = 0.0230 s = 23 ms)