i have tried the example teensy programs to test my audio shield, and my record files full of zeros. for beginner, maybe it is easier to do version one of recording without the audio shield (one less piece of hardware to hookup, and the audio shield covers all the holes in my breadboard).
looks like two ways to record audio:
.. Teensy's audio library
.. i2s (the only one i could get to work is at https://github.com/nodae/teensy_i2s_experimental)
Teensy audio library:
1) has anyone found sample code using teensy audio library to record from an i2s mic like Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H (3421)? i have tried with the example codes, including File > Examples > Audio > Recorder. the recorder program shows how to wire analog mic, or line in from external equipment, but cannot find anything about how to wire the SPH0645LM4H i2s digital mic. nor could i find the sample rate or bits per sample.
i2s:
2) onehorse code looks like what i need, it shows pin connections clearly (https://forum.pjrc.com/threads/4085...-without-board?p=128167&viewfull=1#post128167), but when i run it, capture the serial output, import to audacity, my recordings a constant high pitch sound. i am using sample rate of 48000 and 32 bits per sample. this is guess based on onehorse code. has anyone experience issue of recordings being 100% high pitch tone?
i've spent two days googling. i'm ready to spend more, any hints?
thanks!
looks like two ways to record audio:
.. Teensy's audio library
.. i2s (the only one i could get to work is at https://github.com/nodae/teensy_i2s_experimental)
Teensy audio library:
1) has anyone found sample code using teensy audio library to record from an i2s mic like Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H (3421)? i have tried with the example codes, including File > Examples > Audio > Recorder. the recorder program shows how to wire analog mic, or line in from external equipment, but cannot find anything about how to wire the SPH0645LM4H i2s digital mic. nor could i find the sample rate or bits per sample.
i2s:
2) onehorse code looks like what i need, it shows pin connections clearly (https://forum.pjrc.com/threads/4085...-without-board?p=128167&viewfull=1#post128167), but when i run it, capture the serial output, import to audacity, my recordings a constant high pitch sound. i am using sample rate of 48000 and 32 bits per sample. this is guess based on onehorse code. has anyone experience issue of recordings being 100% high pitch tone?
i've spent two days googling. i'm ready to spend more, any hints?
thanks!