I'm an experienced Python developer, and a complete newbie at electronics.
I got an ESP32 board with MicroPython installed, and a microphone connected to it.
I'm able to get a reading off the microphone, like this:
MicroPython v1.9.4 on 2018-05-11; ESP32 module with ESP32
Type "help()" for more information.
>>> import machine
>>> a = machine.ADC(machine.Pin(32))
>>> a.read()
488
>>> a.read()
496
>>> a.read()
449
My question is: How do I actually record audio so I could send it via email? Wave format or any other format. I guess that any implementation would just sample the level in a loop and build an array, but if there's an implementation that already exists instead of me having to write it, that'd be great.