projects
/
php.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Переделано с временных файлов на proc_open + mp3 кодирование на лету.
[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
?>