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 tried using af for audiodata with high sample rates. The resulting spectrograms look correct, however, the y_coords (and underlying fre_band_arr) are not correct. Looks like some too low default is used. Using the high_fre setting does not help.
importaudiofluxasaffromaudioflux.typeimportSpectralFilterBankScaleTypeaudio_arr, sr=af.read(
"20170701_213954-MYOMYS-LR_0_0.5.wav"
)
bft_obj=af.BFT(
num=128,
radix2_exp=12,
samplate=sr,
scale_type=SpectralFilterBankScaleType.MEL,
#high_fre=192000, # does not solve the issueprint(sr)
# 500000print(bft_obj.y_coords()[-1])
# 15948.399 , should be close to 192000 or 250000print(bft_obj.high_fre)
# 250000 # without high_fre setting, 192 with high_fre setting
Same issue with files with 384 kHz sr, and also using audioflux.mel_spectrogram
The text was updated successfully, but these errors were encountered:
@johanez Our current maximum supported sample rate is 196,000, and we plan to support even higher sample rates in the future. If possible, you can downsample the audio before extracting the Mel spectrogram.
I tried using
af
for audiodata with high sample rates. The resulting spectrograms look correct, however, they_coords
(and underlyingfre_band_arr
) are not correct. Looks like some too low default is used. Using thehigh_fre
setting does not help.To reproduce, use e.g. this file: 0170701_213954-MYOMYS-LR_0_0.5.wav with 500 kHz sampling rate.
Same issue with files with 384 kHz sr, and also using
audioflux.mel_spectrogram
The text was updated successfully, but these errors were encountered: