Closed jepler closed 2 years ago
Regarding @jepler comment, I have tested this using:
import ulab .numpy as np
and
mic_samples = np.zeros(MIC_NUM_SAMPLES, dtype=np.uint16)
Also tested it using a perhaps cleaner:
import ulab
and
mic_samples = ulab.numpy.zeros(MIC_NUM_SAMPLES, dtype=ulab.numpy.uint16)
(which is, I believe, @jepler suggested change).
Seems like we're only using ulab.numpy to get an array of 16 bit values. Could probably use array.array instead.
Seems like we're only using ulab.numpy to get an array of 16 bit values. Could probably use array.array instead.
We do
mic_svc.sound_samples = mic_samples - 32768
which relies on ulab.numpy
operations.
Ah, I see.
Looks like we're working on the same issue, you're just ahead of me.
these need to be updated to use
ulab.numpy