Created
June 29, 2016 09:37
-
-
Save UedaTakeyuki/cc5e461614acd1255a0c1c80e59906a2 to your computer and use it in GitHub Desktop.
have Raspberry Pi talk something from Browser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//$command = 'sudo sh -c "/home/pi/install/aquestalkpi/AquesTalkPi '. $_POST["phrase"] . ' | aplay"'; | |
$command = 'sudo sh -c "/home/pi/install/aquestalkpi/AquesTalkPi '. $_POST["phrase"] . ' | aplay > /dev/null &"'; | |
//shell_exec($command); | |
exec($command); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment