用SONOS做TTS,朗读没有问题,就是只要触发过后,Media_player就一直循环播放不会停止,请问有什么办法让它朗读完就停啊
流如下:
[{“id”:“a086ff26.87768”,“type”:“api-call-service”,“z”:“557fd105.fe3338”,“name”:“马桶冲水”,“server”:“4379efdc.d0568”,“version”:3,“debugenabled”:false,“service_domain”:“remote”,“service”:“send_command”,“entityId”:“remote.wei_sheng_jian_minikpro”,“data”:"{“entity_id”: “remote.wei_sheng_jian_minikpro”, “command”: “ir_1002”}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:460,“y”:1040,“wires”:[[“4adcdffe.3e9cf8”,“80c094ca.1974f”]]},{“id”:“80c094ca.1974f”,“type”:“function”,“z”:“557fd105.fe3338”,“name”:“TTS内容”,“func”:“var message = 马桶已清洁。
;\nmsg.payload = {};\nmsg.payload.data = {“message”:message};\nreturn msg;\n”,“outputs”:1,“noerr”:0,“initialize”:"",“finalize”:"",“libs”:[],“x”:680,“y”:1040,“wires”:[[“27f05526.c126f2”]]},{“id”:“27f05526.c126f2”,“type”:“api-call-service”,“z”:“557fd105.fe3338”,“name”:“清洁马桶TTS”,“server”:“4379efdc.d0568”,“version”:3,“debugenabled”:false,“service_domain”:“tts”,“service”:“baidu_say”,“entityId”:“media_player.ke_ting”,“data”:"",“dataType”:“jsonata”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:850,“y”:1040,“wires”:[[]]},{“id”:“4379efdc.d0568”,“type”:“server”,“name”:“Home Assistant”,“version”:1,“legacy”:false,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true}]