Replies: 2 comments 2 replies
-
I changed the byte order from |
Beta Was this translation helpful? Give feedback.
2 replies
-
try signed int16 ('h'?) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm trying to get realtime data from a INMP411 I2S microphone, to make it trigger the start of a recording after a certain volume level I was able to run the examples from this repository: https://github.com/miketeachman/micropython-i2s-examples , however I was unable to convert the data I got from I2S.readinto(buf) into a usable format, more specifically I'm trying to convert the bytebuffer into a list of ints that I can use to measure volume level. Just to try to make same sense of the data I tried printing the buffer on the console and converting it to a numpy array on my computer and plot it with matplotlib:
I got this from a sample with music playing near by:

and this from recording silence:

not sure why it ramps like that, am I using the wrong data type?
Beta Was this translation helpful? Give feedback.
All reactions