Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    ?Volume control?

    General Discussion
    2
    3
    671
    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.
    • J
      Jmh474 last edited by

      I’m in the middle of building my first MagicMirror2, and yes it’s a fun project.

      I’m just wondering if there is a way to control the volume using voice control??

      Eg saying volume up or down

      I’m running from usb sound card to a little 50w x 2 to two speakers.

      Any ideas would be grate full

      1 Reply Last reply Reply Quote 0
      • Y
        yep_DD last edited by

        That is how I do it, I use a HUE Dimmer Switch and FHEM to control it.

        elif self.path=='/down':
                    status='Volume down'
                    subprocess.Popen(["amixer", "set", "Master", "8%-"], preexec_fn=os.setsid)
        elif self.path=='/up':
                    status='Volume up'
                    subprocess.Popen(["amixer", "set", "Master", "8%+"], preexec_fn=os.setsid)
        
        1 Reply Last reply Reply Quote 0
        • J
          Jmh474 last edited by

          I was wondering if it could be controlled by the raspberry pi itself, when you set up the MagicMirror2, you run through the audio settings for the mic and sound out put…

          Is there any way to control volume from here??

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy