Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for volume lowering #14

Closed
denis-stepanov opened this issue Aug 8, 2022 · 2 comments · Fixed by #41
Closed

Support for volume lowering #14

denis-stepanov opened this issue Aug 8, 2022 · 2 comments · Fixed by #41
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@denis-stepanov
Copy link
Owner

It could be of interest when an ad kicks in not to mute it completely but to decrease volume by a certain amount. And, correspondingly, increase it back for content watching. The amount could be calculated if the volume is known, or some predefined configurable value.

@denis-stepanov denis-stepanov added the enhancement New feature or request label Aug 8, 2022
@denis-stepanov denis-stepanov changed the title Support for sound lowering Support for volume lowering Aug 10, 2022
@denis-stepanov denis-stepanov added this to the 1.4.0 milestone Aug 27, 2022
@denis-stepanov denis-stepanov self-assigned this Sep 12, 2022
@denis-stepanov
Copy link
Owner Author

PulseAudio:

$ pactl set-sink-volume @DEFAULT_SINK@ +10%
$ pactl set-sink-volume @DEFAULT_SINK@ -10%
$ pactl set-sink-volume @DEFAULT_SINK@ 20%
$ pactl get-sink-volume @DEFAULT_SINK@
Volume: front-left: 13107 /  20% / -41.94 dB,   front-right: 13107 /  20% / -41.94 dB
        balance 0.00
$

So querying is supported and various options are available.

Harmony:

$ curl -s -S -X POST http://localhost:8282/hubs/harmony/commands/volume-down
$ curl -s -S -X POST http://localhost:8282/hubs/harmony/commands/volume-up

This will change volume by 1 (equivalent of pressing a volume button on a TV remote). Not clear at this point if multiple actions need spacing or not.

@denis-stepanov
Copy link
Owner Author

This will change volume by 1 (equivalent of pressing a volume button on a TV remote). Not clear at this point if multiple actions need spacing or not.

Yes, need spacing of 0.25 s at least, otherwise works unreliably.

@denis-stepanov denis-stepanov linked a pull request Sep 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant