Skip to content

Instantly share code, notes, and snippets.

@UedaTakeyuki
Created June 29, 2016 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UedaTakeyuki/cc5e461614acd1255a0c1c80e59906a2 to your computer and use it in GitHub Desktop.
Save UedaTakeyuki/cc5e461614acd1255a0c1c80e59906a2 to your computer and use it in GitHub Desktop.
have Raspberry Pi talk something from Browser.
<?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