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

    MP3 from internal memory? Core2

    General
    4
    5
    6.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.
    • B
      babygirl1248
      last edited by

      Hello, I am currently using tone generation in my code, and would like to switch it out for mp3 files. I am so lost on how to do this. every mp3 example I find errors out at compiling usualy saying something like from is not a valid (something) cant remember.
      This is my current code:
      if( cfg.dev_mode )
      play_tone(3000, 100, 1);
      else
      play_tone(3000, 100, cfg.warning_volume);

      I would like to replace this with mp3 files stored in internal memory. Does anyone have an example or walkthrough I can try?

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

        No, currently Micropython only supports .wav files

        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
        • D
          dweaver309
          last edited by

          Here are a couple from excellent postings that should get you stared:

          https://github.com/earlephilhower/ESP8266Audio

          https://github.com/pschatzmann/arduino-audio-tools

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

            https://forum.m5stack.com/topic/143/lesson-6-1-speaker-mp3-player

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

              @oscillator said in MP3 from internal memory? Core2:

              https://forum.m5stack.com/topic/143/lesson-6-1-speaker-mp3-player

              That was written for the original M5Stack in Arduino and so due to so many changes in Arduino does not work any more.
              @dimi are you still around?

              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
              • First post
                Last post