naprawa audio generatora

pull/1/head
Paweł Ostolski 2020-03-15 22:33:19 +01:00
rodzic 06cfb82ef7
commit e480f5ca91
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -32,9 +32,12 @@ function azAZ09($string)
}
https://code.responsivevoice.org/getvoice.php?text=gfdgfg&lang=pl&engine=g1&name=&pitch=0.5&rate=0.5&volume=1&key=WGciAW2s&gender=female
function getMpg($word, $filename)
{
$url = 'https://code.responsivevoice.org/getvoice.php?tl=pl&pitch=0.5&rate=0.5&vol=1&t='.urlencode($word);
$url = 'https://code.responsivevoice.org/getvoice.php?lang=pl-GB&engine=g1&name=&pitch=0.5&rate=0.5&volume=1&key=WGciAW2s&gender=female&text='.urlencode($word);
$audio = file_get_contents_curl($url);
file_put_contents('mpg/'.$filename.'.mpg', $audio);