Duke Yin's Technology database

Home Assistant 语音动作指令

使用Piper TTS 在小爱音箱播放英文语音

action: tts.speak
data:
  media_player_entity_id: media_player.xiaomi_*****_play_control
  message: What is the time now?
target:
  entity_id: tts.piper

使用edgeTTS在小爱音箱播放语音

action: tts.speak
data:
  media_player_entity_id: media_player.xiaomi_*****_play_control
  message: 今天天气晴,下午会变得有点热。
target:
  entity_id: tts.edge_tts

使用小爱音箱自己的TTS读字

action: notify.send_message
target:
  entity_id: notify.xiaomi_cn_*****_play_text_a_5_1
data:
  message: 明天是几号?

发布评论

评论

标注 * 的为必填项。