Script Blueprint for google_translate_say AND tts-cloud-say message. (NOT an Automation Blueprint)

Tags: #<Tag:0x00007fc414c31678> #<Tag:0x00007fc414c31538> #<Tag:0x00007fc414c31420>

This is 2 separate script domain blueprints that do the same thing, one with google_translate_say and one with Nabu-Casa’s cloud_say. I have an example calling script that you can edit & use as well.

SEE BELOW FOR THE TTS.CLOUD_SAY VERSION…

:arrow_down: Get Started - tts_google_translate_say Version:

(see below for tts-cloud-say version)

Updates will be published on my GIST repository with the rest of my Home Assistant Blueprint collection.

Option 1: My Home Assistant

Click the badge to import this Blueprint

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Option 2: Direct Link

Copy this link if you want to import the blueprint in your installation.

:page_facing_up: Description

At the point of release of this Script Blueprint, the infrastructure to generate the calling script with the !inputs does not yet exist. This will have to be done manually.

This version uses Google_translate_say to send the message. This is the default TTS in Home Assistant.

I have my TTS configuration looking like this. You may need to adjust the blueprint if yours is different:

- platform: google_translate
  service_name: google_translate_say
  language: 'en'

You can import the script blueprint via the button above or manually as below, however it does not show in the UI as there is no Script Blueprint UI and it is not an Automation Blueprint.
To import this Blueprint:

• Open Home Assistant with administrator privileges and on a Lovelace screen, click anywhere in the main entity area and type the letter ‘c’. A selection box should pop up. Type blue and select the button to navigate to blueprints. You can also find blueprints by selecting configuration from the left menu and then blueprints from the center menu.
• Once there, click on the ‘Import Blueprint’ button in the lower right side of the main screen.
• In the ‘URL of the blueprint’ line type or paste in the URL of my Blueprint. I have the blueprint stored on my Public GIST on GitHub:
https://gist.github.com/SirGoodenough/ecf747f3bc399f088a13853cf80ec12b
• Since this is a Script, and not an Automation, it will not show in the UI. Use an editor such as VSCode to verify it is there and to make any changes.

This is a very simple sample test case, I wanted to see if it would work…

Here is a sample script you can edit and use to call the Blueprint and use it. This will also have to be manually edited.

You must remember to reload scripts or restart after you make or edit this file or it will not work as expected. (From Lovelace screen type c then scr then reload scripts.)

scripts:

blueprint_test2:
  alias: Test message Blueprint google_translate_say
  description: 'Blah Blah'
  use_blueprint:
    path: /config/blueprints/script/SirGoodenough/tts_google_translate_say_message_script.yaml
    input:
      speaker_target: media_player.living_room_speaker
      speaker_language: es
      announcement_message: No importa lo que diga.

NEW BLUEPRINT BELOW


:arrow_down: Get Started tts_cloud_say version

(see above for google_translate_say version)

Updates will be published on my GIST repository with the rest of my Home Assistant Blueprint collection.

Option 1: My Home Assistant

Click the badge to import this Blueprint

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Option 2: Direct Link

Copy this link if you want to import the blueprint in your installation.

:page_facing_up: Description

At the point of release of this Script Blueprint, the infrastructure to generate the calling script with the !inputs does not yet exist. This will have to be done manually.

This version uses tts_cloud_say to send the message. This is is available only if you are a subscriber to Nabu-Casa.

You can import the script blueprint via the button above or manually as below, however it does not show in the UI as there is no Script Blueprint UI and it is not an Automation Blueprint.
To import this Blueprint:

• Open Home Assistant with administrator privileges and on a Lovelace screen, click anywhere in the main entity area and type the letter ‘c’. A selection box should pop up. Type blue and select the button to navigate to blueprints. You can also find blueprints by selecting configuration from the left menu and then blueprints from the center menu.
• Once there, click on the ‘Import Blueprint’ button in the lower right side of the main screen.
• In the ‘URL of the blueprint’ line type or paste in the URL of my Blueprint. I have the blueprint stored on my Public GIST on GitHub:
https://gist.github.com/SirGoodenough/7eea35ad75daf883a7938c0bc99499bd
• Since this is a Script, and not an Automation, it will not show in the UI. Use an editor such as VSCode to verify it is there and to make any changes.

This is a very simple sample test case, I wanted to see if it would work…

Here is a sample script you can edit and use to call the Blueprint and use it. This will also have to be manually edited.
Language and Gender can be eliminated in the yaml below as they are defaulted in the Blueprint.

You must remember to reload scripts or restart after you make or edit this file or it will not work as expected. (From Lovelace screen type c then scr then reload scripts.)

scripts:

blueprint_test:
  alias: Test message Blueprint tts_cloud_say using Nabu-Casa
  description: 'Blah Blah'
  use_blueprint:
    path: /config/blueprints/script/SirGoodenough/tts_cloud_message_script.yaml
    input:
      speaker_language: en-AU
      speaker_gender: male
      speaker_target: media_player.living_room_speaker
      announcement_message: It matters not what I say.

Changelog

  • 2021-08-26: First blueprint version :tada:

All My Blueprints

Contact Links or see my other work:

What are we Fixing Today Homepage / Website: https://www.WhatAreWeFixing.Today/
Channel Link URL: (WhatAreWeFixingToday) https://bit.ly/WhatAreWeFixingTodaysYT
What are we Fixing Today Facebook page (Sir GoodEnough): https://bit.ly/WhatAreWeFixingTodayFB
What are we Fixing Today Twitter Account (Sir GoodEnough): https://bit.ly/WhatAreWeFixingTodayTW
Discord Guild: (Sir_Goodenough#9683) https://discord.gg/Uhmhu3B

If you want to support me:

Buy me Coffee: Sir GoodEnough
PayPal one-off donation link: https://www.paypal.me/SirGoodenough
Cash App $CASHTAG: https://cash.me/$SirGoodenough
Venmo cash link: Venmo | Sirius GoodEnough