I have a numpy array that represents audio data(dtype
is np.int16
). Here is a plot of the audio data(me saying "one, two"):
the sampling rate is 100HZ. I saved this array into a wav file. However, the wav file is not audible from other music players(iTunes, vlc, Audacity etc). It's just complete silence.
Here is how I saved the array:
scipy.io.wavfile.write('output.wav',100,waveform) # 'waveform' is the numpy array
I am wondering what could the cause be ?
- sampling rate too low?
- amplitude not enough ? i tried to normalize to -32767 to 32767, but still no sound
Any help is appreciated
PS:
This is how the file looks in Audacity(I'm not very familiar with this software):