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

    Setting the volume

    FAQS
    7
    9
    23.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.
    • R
      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
        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
          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
            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
              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
                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
                  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
                    maugustyniak
                    last edited by maugustyniak

                    Volume does not work fo us too.

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

                      Volume only works in "playMusic" function.

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