From df14aec01704e26dbef80be1cca3ade02957376b Mon Sep 17 00:00:00 2001 From: ccostan Date: Mon, 25 May 2020 18:33:31 -0400 Subject: [PATCH] Testing TTS functions with Speech Engine. #421 --- config/script/speech_processing.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/config/script/speech_processing.yaml b/config/script/speech_processing.yaml index 21b906ab..2cc874d8 100755 --- a/config/script/speech_processing.yaml +++ b/config/script/speech_processing.yaml @@ -2,6 +2,7 @@ ###Script to actually send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this: # action: # service: script.speech_engine + # media_player: # speech_message: # # @CCOSTAN # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig @@ -58,16 +59,18 @@ speech_processing: 0.3 {% endif %} - # - service: media_player.alexa_tts - # data_template: - # entity_id: > - # {% if states.group.bed.state == 'off' %} - # media_player.office - # {% else %} - # media_player.office - # {% endif %} - # message: >- - # {{ speech_message }} + - service: notify.alexa_media + data_template: + data: + type: tts + target: > + {% if states.group.bed.state == 'off' %} + media_player.office + {% else %} + media_player.master_bathroom + {% endif %} + message: >- + {{ speech_message }} - service: tts.amazon_polly_say data_template: