GithubHelp home page GithubHelp logo

WISH: handle volume about rhasspy HOT 8 CLOSED

rhasspy avatar rhasspy commented on July 30, 2024
WISH: handle volume

from rhasspy.

Comments (8)

synesthesiam avatar synesthesiam commented on July 30, 2024 2

Present now in 2.5.8 :)

from rhasspy.

koenvervloesem avatar koenvervloesem commented on July 30, 2024

An MQTT topic to set the volume for a specific site ID would be useful indeed.

from rhasspy.

KiboOst avatar KiboOst commented on July 30, 2024

Any idea about having this ?

from rhasspy.

DeadEnded avatar DeadEnded commented on July 30, 2024

I will add myself to this request.
Currently I have a cron job that turns volume up/down and certain times of the day from the host - but was hoping to automate it through Node-Red/HA. Example, when baby's door is shut, turn down the volume.

I have tried to do this through a slot program, but it was explained to me these run during training, not execution - so that didn't work. I also tried from Node-Red but that requires you to install packages, and change permissions/groups... and doing that on every container update is tedious. I know it would work because I can adjust from within the Rhasspy container - its just not exposed to be executed from outside.

Exposing the volume through API and MQTT would be fantastic. I am not certain how difficult this would be (need to use the audio play device specified in the command, but I expect the amazing people working on this already know way more than I do on how to do it).

Because I would love to help, I'm going to start looking at this to see if I can figure out even a first step (I imagine looking at how the other API's work would be a start). But I highly doubt I'll get past the first step!

Thanks!
DeadEnd

from rhasspy.

koenvervloesem avatar koenvervloesem commented on July 30, 2024

For reference: discussion about this on the forum.

from rhasspy.

synesthesiam avatar synesthesiam commented on July 30, 2024

Another idea here: #112

I can modify rhasspy-speakers-cli-hermes to look for WAVE metadata with a requested volume change, run the WAV data through sox, and play the post-processed audio.

To make this work, we'd need to modify anything that puts out a playBytes message to optionally include a volume setting. The nice thing is you could have different volumes for different services.

from rhasspy.

synesthesiam avatar synesthesiam commented on July 30, 2024

Got a start on the WAV metadata manipulation: https://github.com/synesthesiam/wav-chunk

from rhasspy.

synesthesiam avatar synesthesiam commented on July 30, 2024

This will be part of 2.5.8

from rhasspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.