搜尋此網誌

2021年6月13日 星期日

(Home Assistant) Google Nest Mini 2 加入 Home Assistant 使用 TTS (Text-to-Speech)


 


Google Nest Mini 2 加入 Home Assistant 使用 TTS (Text-to-Speech) , 讓 HA 除了執行自動化及發佈Line通知, 還可以加入 Nest Mini 後讓智慧喇叭讀出設定好的文字,例如陽台窗打開超過一分鐘等

configuration.yaml  加入以下



tts:

  - platform: google_translate

    cache: true

    language: zh-tw    #繁體中文

    cache_dir: /tmp/tts

    time_memory: 300

    base_url: http://192.168.1.163:8123   #填入HA IP

    service_name: google_say




service: tts.google_say

data:

  entity_id: media_player.jia_ting_yu_le_shi  #填入Nest mini 實體ID

  message: 你好呀



若要在 Node-Red 中啟用 Google TTS,Node-Red 需要先安裝 Google Say 插件

設置 / Palette / 安裝 / 搜尋列中輸入 google 下方可見 google-translate-tts 點擊安裝







沒有留言:

張貼留言