} if (isset($_GET['files'])) { $files = $_GET['files']; } if (isset($_GET['directory'])) { $directory = $_GET['directory']; } if (isset($_GET['service'])) { $service = $_GET['service']; } if ($root && $normal) { $root = false; } if ($root) { if (isset($file)) { playFile($file); } if (isset($files)) { playFiles($files); } if (isset($directory)) { playAllMusic($directory); } if (isset($service)) { startService($service); } returnToNormal(); } if ($normal) { elevateToRoot(true); }
<?php require_once "config.php"; require_once "twilio_utils.php"; $phone = $_REQUEST['Caller']; header("content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response>"; playFile("creole_prompt.mp3"); // Just does the recording, no transcription $actionUrl = $root_url . "insert.php?language=creole"; $actionUrl .= "&phone={$phone}"; echo "<Record action='{$actionUrl}' finishOnKey='#' maxLength='120' />"; echo "</Response>"; ?>
<?php require_once "config.php"; require_once "twilio_utils.php"; header("content-type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<Response>"; playFile("english_prompt.mp3"); //does some machine transcription echo "\n <Record transcribe='true' transcribeCallback='" . $root_url . "insert.php?language=english'\n action='confirm.php' finishOnKey='#' maxLength='120' />"; echo "</Response>"; ?>