Google is SHOUTING at me

I have a script to say random phrazes. Not the best scriptng but it works. But everytime it annmounces a script on a Google Hub the volume is really high up at 8.

I have tried a few commands on volume and volume_level with numbers, percentages and quotes. These are sample YAML i have found but I cannot get any to work.

Can anyone recommend how I change my script so I can lower the volume?

action: tts.speak
target:
  entity_id: tts.google_en_com

data:
  cache: true
  media_player_entity_id: media_player.kitchen_tv_2

  message: |-
    {{ ["There is no elevator to success, you have to take the stairs",
        "Faith goes up the stairs that love has built and looks out the windows which hope has opened.",
        "Life is like a staircase, you have to go up each step to reach the top.", 
        "Climbing the stairs is a visual representation of leveling up",
        "Success is a staircase, each step gets you closer to the top. But nothing will happen if you do not start climbing"]
 | random }}

Try adding another action using the media_player.volume_set command, possibly followed by a sight delay to make sure your Hub has enough time to receive it before the announcement:

action: media_player.volume_set
data:
  volume_level: 0.33
target:
  entity_id: media_player.kitchen_tv_2

Note that volume values in the action call can only be between 0 (0%) and 1 (100%), so that might have been your problem.

I tried the following but the volume still shouts when Google says the random phraze.

sequence:
  - action: media_player.volume_set
    data:
      volume_level: 0.33
    target:
      entity_id: media_player.kitchen_tv_2

  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0

     
  - action: tts.speak
    target:
      entity_id: tts.google_en_com
    data:
      cache: true
      media_player_entity_id: media_player.kitchen_tv_2
      message: |-
        {{ ["There is no elevator to success, you have to take the stairs",
            "Faith goes up the stairs that love has built and looks out the windows which hope has opened.",
            "Life is like a staircase, you have to go up each step to reach the top.", 
            "Climbing the stairs is a visual representation of leveling up",
            "Success is a staircase, each step gets you closer to the top. But nothing will happen if you do not start climbing"]

         | random }}  
alias: aa Google words of wisdom TALKS REALLY LOUD (Duplicate)
description: ""

If you adjust the volume level in the code does it actually change the volume?

I’m not positive, but it feels like the volume is being overridden by the Google’s device settings.

1 Like

It does change the volumne down and then it goes loud just before it speaks.

I asked ChatGPT and it gave me basically the same code and also says the same problem may occur.

It just seems to be the Google nest speaker.

Not sure if this is solvable.

May I ask what model the Google Hub is? I will try to replicate your problem with a slightly older Nest hub I still have. It may not matter, but it’s best having all the info to start.

She tells me she is a Google Nest Hub Max

1 Like