Hi,
I’m trying to capture sound from the mic and save it to a wav file and also play it back via the speaker. Not sure how to do that, and was hoping to get some help/advise.

I’ve attached a mic and speaker to the ports and did manage to play back another wav file via the speaker, so at least I know the playback works in general. Just not sure how to capture sound from the mic and play that back.

See the code below for what I started with and although it read 1024 bytes, I don’t hear anything when I try to play it back. I did also try putting the read and write in a loop but no luck.

From your description, I think the problem is the mics don’t fit HEXA, all looks fine for other parts. Since HEXA’s audio interface is 3.5mm LINE_IN, it’s not like the normal computer’s audio interface. You might need to find a mic with “Class-D Audio Power Amplifier Module” to use LINE_IN protocol.

You should check this out. Can’t say it’s necessarily the best thing you’ll
find for your project (not to say it won’t be great, I simply don’t know
how it compares to all else out there), but it’s cheap, small, and at the
very least should be able to power a microphone to get you enough
information to accomplish what you’re looking for.

You should check this out. Can’t say it’s necessarily the best thing you’ll find for your project (not to say it won’t be great, I simply don’t know how it compares to all else out there), but it’s cheap, small, and at the very least should be able to power a microphone to get you enough information to build what you’re going for to the point where it works. You can evaluate if this is enough for your purposes at that point.

As I read on the Adafruit’s page, simply just wire VCC to 3.3V-out, OUT to ADC pin, and GND to ground. Should working without amp.

Using it is simple: connect GND to ground, VCC to 2.4-5VDC. For the best performance, use the “quietest” supply available (on an Arduino, this would be the 3.3V supply). The audio waveform will come out of the OUT pin. The output will have a DC bias of VCC/2 so when its perfectly quiet, the voltage will be a steady VCC/2 volts (it is DC coupled). If the audio equipment you’re using requires AC coupled audio, place a 100uF capacitor between the output pin and the input of your device. If you’re connecting to an audio amplifier that has differential inputs or includes decoupling capacitors, the 100uF cap is not required.

If you’re connecting to a microcontroller pin, you don’t need an amplifier or decoupling capacitor - connect the OUT pin directly to the microcontroller ADC pin.

Thanks for the info Did not want to try to go beyond the USB interface for power. Either way, with the svelte design of the shell, I do not see how I can get any reasonably sized speaker or mic under the shell, so I am abandoning that part of my project