-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for SPH0645LM4H #3
Comments
Thank you for keeping track of your progress here, seems like you are on the right track. It'll probably just require a couple more rounds of experimentation and going over the datasheet, pay special attention to the data format. Big endian or little endian is a pain, and 24 bit samples come in all kinds of varieties so they are even worse. Also i2s transport mono/stereo and things like that have to be taken into account. |
The datasheet contains the following info:
I have tried changing the rate to 32000 and using the following command, but still no luck
Would appreciate if you can help me in the right direction! |
It's very difficult for me to give some pointers without having the device on hand. But seeing it's from adafruit it must have some support community around it, I'd suggest to take your question there? |
@biemster I appreciate your response! I will have a look there. Just to verify you used this one if I'm correct? https://www.tinytronics.nl/en/sensors/sound/inmp441-mems-microphone-i2s I might order this one to see if it works. |
Die lijken heel veel op wat ik had besteld, ik heb ze hier vandaan: https://www.aliexpress.com/item/32960945048.html |
Bedankt! Ik heb die van Tinytronics besteld. Hopen dat daar direct wat bruikbare data uitkomt zodat ik verder kan gaan met PCM data gebruiken voor tone recognition (matchen van een toon / patroon met het ander) vervolgens zal ik weer terug gaan naar de SPH0645LM4H. Ik vermoed zoals je aangaf dat het o.a om de verschillende sampling rate / data format gaat van de SPH0645LM4H. |
I'm trying to read data from the SPH0645LM4H.
The output received is :
However when I transfer this into a bin file:
and then use the following to convert it to .wav I only hear static / no sound... Does my initial data in hexadecimal look fine?
ffmpeg -f s32be -ar 16000 -ac 1 -i data.bin output.wav
Microphone used: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/overview
Code:
The text was updated successfully, but these errors were encountered: