This commit is contained in:
zhujisheng 2019-09-11 18:28:27 +08:00
parent 192ec80737
commit ab8d99d718
11 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class ha_cli(object):
return
def speak(self, sentence, tts='google_say', media_player='all'):
def speak(self, sentence, tts='google_translate_say', media_player='all'):
data = { 'message': sentence,
'entity_id': media_player
}

View File

@ -58,7 +58,7 @@ automation:
value_template: '{{((as_timestamp(now())|int)|timestamp_custom("%H:%M"))==states.input_datetime.alarm_time.state|truncate(5,False,"",0) }}'
action:
# 播放文字语音
- service: tts.google_say
- service: tts.google_translate_say
entity_id: media_player.vlc
data_template:
message: '{{states.input_text.alarm_text.state}}'

View File

@ -38,7 +38,7 @@ automation:
event_data:
entity_id: image_processing.ms_face_feature
action:
service: tts.google_say
service: tts.google_translate_say
entity_id: "all"
data_template:
message: >

Binary file not shown.

Binary file not shown.