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

Volume of speech is wrong relative to the volume of music #164

Open
gcampax opened this issue Mar 8, 2021 · 2 comments
Open

Volume of speech is wrong relative to the volume of music #164

gcampax opened this issue Mar 8, 2021 · 2 comments
Assignees
Labels
bug P2 We need to fix it (backlog)

Comments

@gcampax
Copy link
Contributor

gcampax commented Mar 8, 2021

There are two related issues here:

  • The volume of the speech is generally very low even if the volume of music is acceptable.
  • The music is not stopped or lowered when the agent is speaking.

In theory, the latter vould be accomplished with pactl load-module module-role-ducking ducking_roles=voice-assistant volume=20%, but this has no effect because the music is playing from an ALSA-to-PulseAudio stream that lacks the requisite role (should be "music" or "video").

This issue occurs on Home Assistant OS, using the add-on.

@gcampax gcampax added the bug label Mar 8, 2021
@gcampax gcampax added this to the Almond 2.0 Beta milestone Mar 8, 2021
@gcampax
Copy link
Contributor Author

gcampax commented Mar 8, 2021

Turns out one can set the Spotify volume from inside the Spotify app, including for the spotifyd client, without affecting the PulseAudio volume, so this is less pressing of an issue.

@gcampax
Copy link
Contributor Author

gcampax commented Mar 10, 2021

For the ducking bit, we might be able to force spotifyd to have the right role if we run with PULSE_PROP=media.role=music in the environment. Then loading the module should be enough to duck it.

@gcampax gcampax removed this from the Almond 2.0 Beta milestone May 4, 2021
@nrser nrser added the P2 We need to fix it (backlog) label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 We need to fix it (backlog)
Projects
None yet
Development

No branches or pull requests

3 participants