NodeRed flow 範例 紅色儀表板node 音頻輸出 node 使用TTS功能
[{"id":"908b9843.e202c8","type":"comment","z":"16233033.a69fe","name":"TTS - Text to Speech Example","info":"","x":190,"y":80,"wires":[]},{"id":"17dfc21.6aca03e","type":"ui_audio","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","voice":"en-US","always":"","x":530,"y":100,"wires":[]},{"id":"8e015640.60f3e8","type":"ui_text_input","z":"16233033.a69fe","name":"","label":"","group":"30f2cf2f.c3a3b","order":9,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":330,"y":140,"wires":[["17dfc21.6aca03e","aaee344f.bc1528","1800ed4d.f60f93"]]},{"id":"33437979.4be676","type":"inject","z":"16233033.a69fe","name":"","topic":"Hello","payload":"Hello","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":140,"wires":[["8e015640.60f3e8"]]},{"id":"be1e8a06.fbd948","type":"ui_text","z":"16233033.a69fe","group":"30f2cf2f.c3a3b","order":2,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload}}","layout":"row-center","x":680,"y":140,"wires":[]},{"id":"aaee344f.bc1528","type":"delay","z":"16233033.a69fe","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":320,"y":200,"wires":[["14698e02.1e0aa2"]]},{"id":"14698e02.1e0aa2","type":"function","z":"16233033.a69fe","name":"Check Text","func":"text=msg.payload;\nif(text !== \"\"){\n msg.payload = \"\";\n return msg;\n}","outputs":1,"noerr":0,"x":480,"y":200,"wires":[["8e015640.60f3e8"]]},{"id":"1800ed4d.f60f93","type":"function","z":"16233033.a69fe","name":"Check Text","func":"text=msg.payload;\nif(text !== \"\"){\n msg.payload = text;\n return msg;\n}","outputs":1,"noerr":0,"x":540,"y":140,"wires":[["be1e8a06.fbd948"]]},{"id":"99fd952b.8fe308","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":3,"width":"6","height":"1","passthru":true,"label":"Hello.","color":"","bgcolor":"","icon":"","payload":"Hello.","payloadType":"str","topic":"","x":320,"y":260,"wires":[["5cbeddbb.2b0b24"]]},{"id":"5cbeddbb.2b0b24","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":260,"wires":[]},{"id":"4702ed05.3c8b54","type":"link in","z":"16233033.a69fe","name":"","links":["5cbeddbb.2b0b24","2bea61ab.4cb7ce","b5f1cd27.707a6","23857211.7b145e","7353c977.fb1fb8","d51111c2.4ae4e"],"x":165,"y":200,"wires":[["8e015640.60f3e8"]]},{"id":"5bbbde80.b40c","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":260,"wires":[["99fd952b.8fe308"]]},{"id":"a56d9174.03ebe","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":4,"width":"6","height":"1","passthru":true,"label":"Good bye.","color":"","bgcolor":"","icon":"","payload":"Good bye.","payloadType":"str","topic":"","x":340,"y":300,"wires":[["2bea61ab.4cb7ce"]]},{"id":"2bea61ab.4cb7ce","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":300,"wires":[]},{"id":"9129223f.cc023","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":300,"wires":[["a56d9174.03ebe"]]},{"id":"b74bca1b.5a5dc8","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":5,"width":"6","height":"1","passthru":true,"label":"Thank you.","color":"","bgcolor":"","icon":"","payload":"Thank you.","payloadType":"str","topic":"","x":340,"y":340,"wires":[["b5f1cd27.707a6"]]},{"id":"b5f1cd27.707a6","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":340,"wires":[]},{"id":"15e44e2f.a6ac72","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":340,"wires":[["b74bca1b.5a5dc8"]]},{"id":"3e2e653d.393e0a","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":6,"width":"6","height":"1","passthru":true,"label":"I don't know.","color":"","bgcolor":"","icon":"","payload":"I don't know.","payloadType":"str","topic":"","x":340,"y":380,"wires":[["23857211.7b145e"]]},{"id":"23857211.7b145e","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":380,"wires":[]},{"id":"9db4b100.a19d3","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":380,"wires":[["3e2e653d.393e0a"]]},{"id":"555025d7.6e23cc","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":7,"width":"3","height":"1","passthru":true,"label":"Yes.","color":"","bgcolor":"","icon":"","payload":"Yes.","payloadType":"str","topic":"","x":320,"y":420,"wires":[["7353c977.fb1fb8"]]},{"id":"7353c977.fb1fb8","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":420,"wires":[]},{"id":"e04c698c.bedff8","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":420,"wires":[["555025d7.6e23cc"]]},{"id":"d452988e.c690e8","type":"ui_button","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","order":8,"width":"3","height":"1","passthru":true,"label":"No.","color":"","bgcolor":"","icon":"","payload":"No.","payloadType":"str","topic":"","x":320,"y":460,"wires":[["d51111c2.4ae4e"]]},{"id":"d51111c2.4ae4e","type":"link out","z":"16233033.a69fe","name":"text out","links":["4702ed05.3c8b54"],"x":485,"y":460,"wires":[]},{"id":"16836915.fe6757","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":460,"wires":[["d452988e.c690e8"]]},{"id":"588fb8f7.4ec6f8","type":"comment","z":"16233033.a69fe","name":"TTS - Text to Speech Example","info":"","x":210,"y":540,"wires":[]},{"id":"113b95a3.5ee51a","type":"ui_audio","z":"16233033.a69fe","name":"","group":"30f2cf2f.c3a3b","voice":"zh-TW","always":"","x":550,"y":560,"wires":[]},{"id":"5d2a299.c7837d8","type":"ui_text_input","z":"16233033.a69fe","name":"","label":"","group":"2bb21280.f543ae","order":9,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":350,"y":600,"wires":[["113b95a3.5ee51a","9e694927.4cc2c8","2e8c4260.49b89e"]]},{"id":"d4eb4180.300e5","type":"inject","z":"16233033.a69fe","name":"","topic":"Hello","payload":"謝謝.","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":600,"wires":[["5d2a299.c7837d8"]]},{"id":"d9f79811.c22fa8","type":"ui_text","z":"16233033.a69fe","group":"2bb21280.f543ae","order":2,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload}}","layout":"row-left","x":700,"y":600,"wires":[]},{"id":"9e694927.4cc2c8","type":"delay","z":"16233033.a69fe","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":340,"y":660,"wires":[["9f5929b1.f05da8"]]},{"id":"9f5929b1.f05da8","type":"function","z":"16233033.a69fe","name":"Check Text","func":"text=msg.payload;\nif(text !== \"\"){\n msg.payload = \"\";\n return msg;\n}","outputs":1,"noerr":0,"x":500,"y":660,"wires":[["5d2a299.c7837d8"]]},{"id":"2e8c4260.49b89e","type":"function","z":"16233033.a69fe","name":"Check Text","func":"text=msg.payload;\nif(text !== \"\"){\n msg.payload = text;\n return msg;\n}","outputs":1,"noerr":0,"x":560,"y":600,"wires":[["d9f79811.c22fa8"]]},{"id":"669801af.33cd4","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":3,"width":"6","height":"1","passthru":true,"label":"Hello.","color":"","bgcolor":"","icon":"","payload":" 你好.","payloadType":"str","topic":"","x":340,"y":720,"wires":[["866acf9d.76e62"]]},{"id":"866acf9d.76e62","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":720,"wires":[]},{"id":"17d4a7ef.345e58","type":"link in","z":"16233033.a69fe","name":"","links":["866acf9d.76e62","92075af4.3ac378","dafc0811.066ec8","e7931a4e.b87df8","2d402571.5f5e8a","c6875067.3ce01"],"x":185,"y":660,"wires":[["5d2a299.c7837d8"]]},{"id":"4cc12fbb.b15cf","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":720,"wires":[["669801af.33cd4"]]},{"id":"a72065f8.c45ff8","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":4,"width":"6","height":"1","passthru":true,"label":"Good bye.","color":"","bgcolor":"","icon":"","payload":"再見.","payloadType":"str","topic":"","x":360,"y":760,"wires":[["92075af4.3ac378"]]},{"id":"92075af4.3ac378","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":760,"wires":[]},{"id":"7c534493.6c6f0c","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":760,"wires":[["a72065f8.c45ff8"]]},{"id":"aedf9081.69141","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":5,"width":"6","height":"1","passthru":true,"label":"Thank you.","color":"","bgcolor":"","icon":"","payload":"感謝您.","payloadType":"str","topic":"","x":360,"y":800,"wires":[["dafc0811.066ec8"]]},{"id":"dafc0811.066ec8","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":800,"wires":[]},{"id":"208b82aa.2fb4ae","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":800,"wires":[["aedf9081.69141"]]},{"id":"e048f034.9dc68","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":6,"width":"6","height":"1","passthru":true,"label":"I don't know.","color":"","bgcolor":"","icon":"","payload":"我不知道.","payloadType":"str","topic":"","x":360,"y":840,"wires":[["e7931a4e.b87df8"]]},{"id":"e7931a4e.b87df8","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":840,"wires":[]},{"id":"3796ae61.62f8e2","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":840,"wires":[["e048f034.9dc68"]]},{"id":"a2908ee5.8814f","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":7,"width":"3","height":"1","passthru":true,"label":"Yes.","color":"","bgcolor":"","icon":"","payload":"是的.","payloadType":"str","topic":"","x":340,"y":880,"wires":[["2d402571.5f5e8a"]]},{"id":"2d402571.5f5e8a","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":880,"wires":[]},{"id":"fec228e2.26c6f8","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":880,"wires":[["a2908ee5.8814f"]]},{"id":"bc4b1b1.81e6fe8","type":"ui_button","z":"16233033.a69fe","name":"","group":"2bb21280.f543ae","order":8,"width":"3","height":"1","passthru":true,"label":"No.","color":"","bgcolor":"","icon":"","payload":"不.","payloadType":"str","topic":"","x":340,"y":920,"wires":[["c6875067.3ce01"]]},{"id":"c6875067.3ce01","type":"link out","z":"16233033.a69fe","name":"text out","links":["17d4a7ef.345e58"],"x":505,"y":920,"wires":[]},{"id":"a1145ad9.0ea6d8","type":"inject","z":"16233033.a69fe","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":920,"wires":[["bc4b1b1.81e6fe8"]]},{"id":"30f2cf2f.c3a3b","type":"ui_group","z":"","name":"TTS - Text to Speech","tab":"81c048e6.13f398","order":1,"disp":true,"width":"6","collapse":false},{"id":"2bb21280.f543ae","type":"ui_group","z":"","name":"TTS - Text to Speech 2","tab":"81c048e6.13f398","order":2,"disp":true,"width":"6","collapse":false},{"id":"81c048e6.13f398","type":"ui_tab","z":"","name":"TTS","icon":"dashboard","order":2}]
訂閱:
張貼留言 (Atom)
113 學年度第 1 學期 RFID應用課程 Arduino程式
113 學年度第 1 學期 RFID應用課程 Arduino程式 https://www.mediafire.com/file/zr0h0p3iosq12jw/MFRC522+(2).7z/file 內含修改過後的 MFRC522 程式庫 (原程式有錯誤) //定義MFRC522...
-
python pip 不是内部或外部命令 -- 解決方法 要安裝 Pyqt5 1. 首先,開啟命令提示字元。 2. 輸入 pip3 install pyqt5 好像不能執行 ! ! 錯誤顯示 : ‘ pip3 ’ 不是內部或外部命令、可執行的程式或批...
-
課程講義 下載 11/20 1) PPT 下載 + 程式下載 http://www.mediafire.com/file/cru4py7e8pptfda/106%E5%8B%A4%E7%9B%8A2-1.rar 11/27 2) PPT 下載...
-
• 認 識 PreFix、InFix、PostFix PreFix(前序式):* + 1 2 + 3 4 InFix(中序式): (1+2)*(3+4) PostFix(後序式):1 2 + 3 4 + * 後 序式的運算 例如: 運算時由 後序式的...
沒有留言:
張貼留言