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

    Setting the volume

    Scheduled Pinned Locked Moved FAQS
    9 Posts 7 Posters 26.9k Views 2 Watching
    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.
    • R Offline
      rocklobster
      last edited by

      Hi,
      setting the volume with "M5.Speaker.setVolume(int value);" and values between "0" and "10" doesn´t cause anything. What am I supposed to do?
      Thx,
      Boris

      1 Reply Last reply Reply Quote 0
      • D Offline
        dda
        last edited by

        You're supposed to call M5.Speaker.update(); after that to update the value.

        world101W 1 Reply Last reply Reply Quote 1
        • world101W Offline
          world101 @dda
          last edited by

          @dda 在 Setting the volume 中说:

          You're supposed to call M5.Speaker.update(); after that to update the value.

          Excellent and thanks! I was wondering the same thing.

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            dda @world101
            last edited by

            @world101 Remember, same thing as most events in M5. Like you need to call M5.update(); if you want feedback on the buttons.

            world101W 1 Reply Last reply Reply Quote 0
            • world101W Offline
              world101 @dda
              last edited by world101

              @dda

              Still doesn't work for me with this configuration.

              void setup() {
                Serial.begin(115200);
                M5.begin();
                M5.Speaker.setVolume(1);
                M5.Speaker.update();
              }
              
              M5.Speaker.beep();
              

              The speaker is still really loud. What am I missing?

              JJJ 1 Reply Last reply Reply Quote 0
              • JJJ Offline
                JJ @world101
                last edited by

                @world101 From what I hear, more work is needed to enable this..... a tweak here or there.... so hopefully soon, maybe.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jpilarski
                  last edited by

                  @world101 在 Setting the volume 中说:

                  M5.Speaker.update();

                  Any news on when it might or how to get the volume M5.Speaker.setVolume() to work.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    maugustyniak
                    last edited by maugustyniak

                    Volume does not work fo us too.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Sergey_Urusov
                      last edited by

                      Volume only works in "playMusic" function.

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post