🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to record audio from the internal microphone then play it through the speaker?

    General
    5
    8
    16.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      somedude
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • S
        somedude
        last edited by

        I think I just realized that the M5Stack doesn't have a built-in microphone.

        ajb2k3A 1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3 @somedude
          last edited by

          @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

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • S
            somedude
            last edited by

            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/

            ajb2k3A 1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3 @somedude
              last edited by

              @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!

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • C
                crami25
                last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • O
                  OttovanZanten
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • L
                    Lewis-H
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post