Convert 16 bit PCM data into numpy array of amplitudes

  audio, numpy, python

I may not be using the right terminology here. I have a numpy array like:

array([ 82, 73, 70, …, 1, 230, 1], dtype=uint8)

It’s supposedly in 16 bit PCM format.

I need to turn this into a numpy audio waveform. And in case that’s not the right terminology, I’ll explain really well what that is: literally the sound wave amplitudes at some sample rate.

I also need do it as fast as possible with Python.

Source: Python Questions

LEAVE A COMMENT