小爱音箱TTS有两套API可以提供TTS的功能。本插件用的是MIoT api,NR上用的应该是mina api。能用就行。
https://github.com/ha0y/xiaomi_miot_raw/issues/139
https://github.com/ha0y/xiaomi_miot_raw/issues/139
0
service: xiaomi_miot.intelligent_speaker
data:
entity_id: media_player.xiaoai_entity_id
text: 你好
execute: false # 不执行,朗读text文本
service: xiaomi_miot.intelligent_speaker
data:
entity_id: media_player.xiaoai_entity_id
text: 开灯
execute: true # 执行text命令
silent: false # 是否静默执行,为true时小爱将在执行命令后无反馈