<?php $lang=$_GET['tl']; $text=$_GET['q']; if ( !$text ) { exit; } include("voice_class_inc.php"); $tts = new voice; $data=$tts->text2Wav($text,$lang); if ($data) { $fsize = filesize($fullPath); $path_parts = pathinfo(); $ext = 'mp3'; header("Content-type: audio/mpeg"); echo $data; } ?>