m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

microphone tests #56

Closed beckmx closed 4 years ago

beckmx commented 4 years ago

Hello guys, I am not able to understand the microphone, is it a 16 bit resolution microphone?, additionally, I wanted to record voice but seems to not fully record all samples and loses quality

EeeeBin commented 4 years ago

And Sorry, we have no examples of recording sounds. Microphone is PDM data out

beckmx commented 4 years ago

So the microphone is connected using I2S but data is PDM, is this right?

EeeeBin commented 4 years ago

I2S support read PDM data https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/i2s.html?highlight=PDM#_CPPv414pdm_pcm_conv_t

beckmx commented 4 years ago

Found the way to get the conversion, thanx