diff --git a/ha_cli.py b/ha_cli.py index 9f03c98..7e0b812 100644 --- a/ha_cli.py +++ b/ha_cli.py @@ -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 } diff --git a/参考文档(1-10)/6.自动化篇.docx b/参考文档(1-10)/6.自动化篇.docx index baa3b7c..16583a0 100644 Binary files a/参考文档(1-10)/6.自动化篇.docx and b/参考文档(1-10)/6.自动化篇.docx differ diff --git a/参考文档(1-10)/6.自动化篇.pdf b/参考文档(1-10)/6.自动化篇.pdf index b7a1556..a44b882 100644 Binary files a/参考文档(1-10)/6.自动化篇.pdf and b/参考文档(1-10)/6.自动化篇.pdf differ diff --git a/参考文档(1-10)/9.人脸识别篇.docx b/参考文档(1-10)/9.人脸识别篇.docx index 2f0e100..2048252 100644 Binary files a/参考文档(1-10)/9.人脸识别篇.docx and b/参考文档(1-10)/9.人脸识别篇.docx differ diff --git a/参考文档(1-10)/9.人脸识别篇.pdf b/参考文档(1-10)/9.人脸识别篇.pdf index 1c7a28c..ea9d069 100644 Binary files a/参考文档(1-10)/9.人脸识别篇.pdf and b/参考文档(1-10)/9.人脸识别篇.pdf differ diff --git a/参考文档(1-10)/example_6_6_1.yaml b/参考文档(1-10)/example_6_6_1.yaml index 691af6b..1d1a95b 100644 --- a/参考文档(1-10)/example_6_6_1.yaml +++ b/参考文档(1-10)/example_6_6_1.yaml @@ -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}}' diff --git a/参考文档(1-10)/example_9_4_1.yaml b/参考文档(1-10)/example_9_4_1.yaml index cac2052..7104d32 100644 --- a/参考文档(1-10)/example_9_4_1.yaml +++ b/参考文档(1-10)/example_9_4_1.yaml @@ -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: > diff --git a/参考文档(21-30)/22.自己动手做一个智能音箱.docx b/参考文档(21-30)/22.自己动手做一个智能音箱.docx index a51144a..372ca87 100644 Binary files a/参考文档(21-30)/22.自己动手做一个智能音箱.docx and b/参考文档(21-30)/22.自己动手做一个智能音箱.docx differ diff --git a/参考文档(21-30)/22.自己动手做一个智能音箱.pdf b/参考文档(21-30)/22.自己动手做一个智能音箱.pdf index 4386596..c8f3b81 100644 Binary files a/参考文档(21-30)/22.自己动手做一个智能音箱.pdf and b/参考文档(21-30)/22.自己动手做一个智能音箱.pdf differ diff --git a/参考文档(21-30)/28.docker.docx b/参考文档(21-30)/28.docker.docx new file mode 100644 index 0000000..a07498f Binary files /dev/null and b/参考文档(21-30)/28.docker.docx differ diff --git a/参考文档(21-30)/28.docker.pdf b/参考文档(21-30)/28.docker.pdf new file mode 100644 index 0000000..82fafb0 Binary files /dev/null and b/参考文档(21-30)/28.docker.pdf differ