projects
/
php.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Добавлена поддержка RHVoice, все остальное тоже переписано.
[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("voice_class_inc.php");
11
$tts = new voice;
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
?>