Raspberry piã«ã´ãã®æ¥ãåãããæ©è½ãæ¹è¯ãã
æ©æ¢°ã«è©±ããããããã¨ãããã¨
ååãslackçµç±ã§Raspberry piã«åãããæ©è½ã追å ããã
ããã使ã£ã¦ã´ãã®æ¥ãéç¥ããããã«ãã¦ããã°ããéç¨ãã¦ã¿ãçµæãããã£ããã¨ãããã
人ã¯ããã£ã¦ãã¦ããçªç¶æ©æ¢°ã«åãããã¨ãããããç解ã追ãã¤ããªãã
å®ééç¨ãã¦ã¿ã¦ãçªç¶ã©ãºãã¤ã«ãä»æ¥ã¯å¯çãã¿ã®æ¥ã§ããã¨è¨ããã¦ããå¿ã®æºåãåºæ¥ãããï¼ï¼ãªãã ã£ã¦ï¼ãã¨ãªã£ãã
ã¾ãæ©æ¢°ã«éãããçªç¶ç¨ä»¶ã ãè¨ãããããç解ã§ããã«èãè¿ãã¦ãã¾ãããã ããªãã
èãã¦ã¿ãã°å½ç¶ã ã£ãã
人ã«è©±ããããæãããã¿ã¾ãããã¨ãããããããã¨ããExcuse meãã¨ãï¼ã¯ãã·ã§ã³ç½®ãã¦ããç¨ä»¶ãè¨ãã
ããã«ãsiriãªã©ãç¨ä»¶ãè¨ãåã«ä½ãããã®é³ãé³´ãã
ã¡ããã¨æå³ããã£ããã ãªããã¨å½ããåã®ãã¨ãåèªèããã
å¿ã®æºå大äºã
ã´ãã®æ¥ã«è¦åé³ãé³´ãã
åè¿°ã®ãã¨ãããã´ãã®æ¥ãé³å£°ã§ç¥ãããåã«ã¡ãã£ã¨ããè¦åé³ãé³´ããããã«ãã¦ã¿ãã
hubotã«ãæ®éã«åãããtalkã³ãã³ãã®ä»ã«ãè¦åé³ä»ãã®warningã³ãã³ãã追å ããã
child_process = require 'child_process' module.exports = (robot) -> robot.respond /talk (.*)/i, (msg) -> atalk robot, msg, msg.match[1] robot.respond /warning (.*)/i, (msg) -> child_process.exec "aplay /home/pi/sound/warning.wav", (error, stdout, stderr) -> if !error atalk robot, msg, msg.match[1] else msg.reply error atalk = (robot, msg, message) -> child_process.exec process.env.AQUESTALK_PATH + "/AquesTalkPi " + message + " | aplay -q", (error, stdout, stderr) -> if !error msg.reply 'OK' else msg.reply error
warningã³ãã³ãã¯ãå ã«ç¨æããwavãã¡ã¤ã«ãåçãããå¾ã«ãç®çã®ã¡ãã»ã¼ã¸ãåããã¦ããã ãã
ã§ãåºæ¥ä¸ãã£ãã®ããã¡ã
ããã§ããèãéããªãã
ãã¤ã¬ã¯ããã¼ã±ãã£ã³ã°
è¦åé³ã¨ããã°ãã©ã¤ã¢ã¹ã
ã·ãªã¼ãºææ°ä½ããã©ã¤ã¢ã¹ãã¼ã¹ã ã¯ããã¯ã«ã»ã¤ãã¼ãºãPS4, PSVita, Windows(Steam)ã§çºå£²ä¸ï¼