I’ve only glanced over this code; there may well be structural problems here, but I can speak to the NumPy usage.
np.array is a factory function that constructs an np.ndarray, it takes at least one argument: the data. In your case, you’re only passing in the data type (dtype). To directly fix your code, you’d write
audio_data = np.empty((0, 1), dtype=np.int16)
where (0, 1) is the shape of (frames, channels) to start with.
However, this is very inefficient; every call to np.append allocates a new array, that grows with each iteration. You’re better off appending each read to a list, and finally concatenating the results if you need a single array, e.g.
frames = []
while ...:
frames.append(audio_input_stream.read(...))
data = np.concatenate(frames, axis=0)