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

    M5STACK CORE 2 SOUNDS

    Core 2
    3
    5
    6.7k
    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.
    • D
      danbicks
      last edited by

      Ladies and gents I have been struggling to work out the best way to convert wav files to C arrays for playing sound using I2S audio output. Has anyone got a clearly documented solution for this. Would have been great in the examples to also include this in future releases. The 2 sounds work fine supplied with the core 2 however no guidance on how one goes about creating their own. All help appreciated. Thanks

      1 Reply Last reply Reply Quote 0
      • E
        erich
        last edited by

        Hi,

        On the same topic it would really be great adding in the C++ M5Core2.h lib a method to play simple beeps.
        I just need to beep on button press but it looks like I have to load a .C sound file in the Core2 flash memory which is totally overkill.

        If someone has an idea how to play simple beep without loading a file can you please help me?

        Thanks a lot!

        1 Reply Last reply Reply Quote 0
        • E
          erich
          last edited by

          I came across this post right after posting here:

          https://community.m5stack.com/topic/3179/how-to-generate-a-beep

          The solution suggested by @AgreeDK does perfectly work! (thanks to you!)

          I would however really like M5 people to update the Core2 lib with a simple beep function like on the Core

          Thanks

          1 Reply Last reply Reply Quote 1
          • ajb2k3A
            ajb2k3
            last edited by

            I have written a guide but its for Micropython but it does specify the exact audio specifications.

            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!

            E 1 Reply Last reply Reply Quote 0
            • E
              erich @ajb2k3
              last edited by

              @ajb2k3 As I mentioned in the other post my code is written in C (VSCode + PIO) however I would like to try Micropython for my next project M5Stuff project :)
              Can you please tell me more about your guide? Is it possible to buy it somewhere? is it the same as what is mentioned in your signature: UIFlow handbook? I would be very much interested, thanks!

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