769b8ce82490310b07ae4a03085a1c15a37a8229
[php.git] / festival-php / index.php
1 <?php
2
3 $lang=$_GET['tl'];
4 $text=$_GET['q'];
5
6 if ( !$text ) {
7   exit;
8 }
9
10 include("festival_class_inc.php");
11 $tts = new festival;
12 $data=$tts->text2Wav($text,$lang);
13
14 if ($data) {
15     $fsize = filesize($fullPath);
16     $path_parts = pathinfo();
17     $ext = 'mp3';
18     header("Content-type: audio/mpeg");
19     echo $data;
20 }
21
22 ?>