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

    How do you change volume on Core2

    Scheduled Pinned Locked Moved Core 2
    7 Posts 3 Posters 13.7k Views
    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 Offline
      SE
      last edited by

      Under "Speaker" in UIFLOW there is the ability to play wave files but the next step is to obviously change volume. Does anyone know how to change volume on a Core2 in UIFLOW or Python?

      1 Reply Last reply Reply Quote 0
      • ZontexZ Offline
        Zontex
        last edited by

        Hello, under hardware -> speaker -> there is a block called "setVolume" that you can use to change the volume of your Core device :)

        1 Reply Last reply Reply Quote 0
        • B Offline
          bobolink
          last edited by

          Is there a C/C++ way to set volume?

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

            On the Grey Core UIFLOW there is a volume command but on under the CORE2 Beta UIFLOW I cannot find one. Here is a screenshot. Let me know what you think. Thanks 0_1611854426492_image_2021-01-28_122026.png

            ZontexZ 1 Reply Last reply Reply Quote 0
            • ZontexZ Offline
              Zontex @SE
              last edited by

              @se Hi, This is core2 not grey, core2 doesn't support for now due to some bug we have to resolve that makes background noise. if you try normal core it will work just fine.

              @bobolink currently we don't support C/C++ API for it.

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bobolink @Zontex
                last edited by

                @zontex OK thanks for the reply. I guess you could set the volume of the .WAV files in the pc program “Audacity”.
                But user volume control would be nice.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bobolink @bobolink
                  last edited by

                  @bobolink FYI to myself
                  If you have an engineering background--part of Micropython--
                  module 'dba: calculate dBA (A-weighting decibels) from an input stream of digital audio samples
                  module 'i2stools': function to efficiently extract sample data from a buffer filled by I2S
                  Signal processing (logical shifts--fractional multiply) on the PCM samples instead of hardware volume control gets the job done also.

                  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