10 include("festival_class_inc.php");
12 $fullPath=$tts->text2Wav($text,$lang);
14 if ($fd = fopen ($fullPath, "r")) {
15 $fsize = filesize($fullPath);
16 $path_parts = pathinfo($fullPath);
17 $ext = strtolower($path_parts["extension"]);
18 header("Content-type: application/octet-stream");
19 header("Content-Disposition: filename=\"".$path_parts["basename"]."\"");
20 header("Content-length: $fsize");
21 header("Cache-control: private"); //use this to open files directly
23 $buffer = fread($fd, 2048);
30 // $tts->text2Speech('The authors email address is. p scott @ u w c dot a c dot zed ay');