How to record audio from the internal microphone then play it through the speaker?
-
Is there an example on how to record audio on the M5Stack using the internal microphone? I could only find a microphone example for the M5StickC: https://github.com/m5stack/M5StickC/blob/master/examples/Basics/Micophone/Micophone.ino
But I don't even know what it does as there are no comments in that file.
I've tried replacing #include <M5StickC.h> with #include <M5Stack.h> and flash it, but then it didn't do anyhting besides showing the text mic test on the display.
-
I think I just realized that the M5Stack doesn't have a built-in microphone.
-
@somedude said in How to record audio from the internal microphone then play it through the speaker?:
I think I just realized that the M5Stack doesn't have a built-in microphone.
Yes, the M5Stack cores do not have microphones.
You need one of these https://m5stack.com/collections/m5-base/products/node-module?ref=pfpqkvphmgr&variant=16804787978330
-
Thanks, but that's too big and I'm not sure if it's compatible with the watch kit.
I think I'm gonna try to get it to work with a MAX4466 or SPM1423. http://community.m5stack.com/topic/1864/adding-a-microphone-to-the-core-watch-kit/ -
@somedude said in How to record audio from the internal microphone then play it through the speaker?:
Thanks, but that's too big and I'm not sure if it's compatible with the watch kit.
I think I'm gonna try to get it to work with a MAX4466 or SPM1423. http://community.m5stack.com/topic/1864/adding-a-microphone-to-the-core-watch-kit/Sorry, completly forgot about that!
-
@somedude
The M5GO/Fire Battery Bottom has got a microphone + a MAX4466 built in. According the schematics it is connected to GPIO 34 of the M5Stack core. -
It's a little late, but there's a M5stack Plus module now that includes a battery (400 or 500 mAh, the official page can't make up its mind), a rotary encoder and a microphone. Still adds a bit of bulk, but if that other little microphone didn't work out it might be worth it. I think the rotary encoder will be a great addition to a watch as you get extra controls (rotation and I think the little wheel can be pressed and used as another button) and using the wheel to set the time and alarms is probably faster and more enjoyable then using buttons.
Btw from what I've read and heard the speaker audio isn't amazing, because the DAC on an ESP32 just isn't as high res as a good audio Dac. Fine for some alarms and stuff and probably even usable as a memo recorder, but not something you'd use for music.
-
The easiest way to extract the sound from a video is to use our audio converter.
Open the audio converter.
Click "Open files".
In the resulting window select the file you wish to extract the sound from. ...
While the sound is being extracted, choose the format in which you want to convert the sound.