Closes #54 - using SSML now for polly. Allow for speech inflection and speed and pauses.

This commit is contained in:
CCOSTAN
2017-04-09 23:10:17 +00:00
parent 03a539434e
commit 6fa92a075e
2 changed files with 8 additions and 4 deletions

View File

@@ -74,14 +74,17 @@ voice_notify:
entity_id: media_player.livingroomCC
data_template:
message: >
"<speak>
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
"Good morning.
Good morning.
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
"Good afternoon.
Good afternoon.
{% else %}
"Good evening.
Good evening.
{% endif %}
{{ value1 }}"
{{ value1 }}
<break time='1s'/>
</speak>"
cache: true
- service: input_boolean.turn_off