0

I can hear audio in jupyter if loaded with scipy. However, I can hear untill 192000 sampling rate. If I set to 192001 or above, I cannot hear anything.

from IPython.display import Audio
from scipy.io.wavfile import read


wave_filename = 'mywave.wav'

fs, data = read(wave_filename, mmap=True)  # fs - sampling frequency
data = data.reshape(-1, 1)
Audio(data = data[:, 0], rate = 180000)

I try the same with librosa:

from IPython.display import Audio
import librosa


wave_filename = 'mywave.wav'

data, fs = librosa.load(wave_filename)  # fs - sampling frequency
Audio(data = data, rate = 120000)


But cannot hear nothing, for any rate value I set.

What can the issue be?

Note - with librosa I can hear a synthetic sound, using a numpy array. But not from original wave.

(p.s. original sampling rate is 250000, I m working with animals vocalisations..)

user305883
  • 1,635
  • 2
  • 24
  • 48

0 Answers0