poprawka generatora sampli

pull/1/head
Paweł Ostolski 2020-12-06 20:28:00 +01:00
rodzic 23425c2eb9
commit 5b76ada19f
2 zmienionych plików z 7 dodań i 1 usunięć

3
.gitignore vendored
Wyświetl plik

@ -3,3 +3,6 @@
imgwpodest_data/* imgwpodest_data/*
propagacja.png propagacja.png
sr0wx.log sr0wx.log
audio_generator/ogg/*
audio_generator/mpg/*

Wyświetl plik

@ -33,7 +33,10 @@ function azAZ09($string)
function getMpg($word, $filename) function getMpg($word, $filename)
{ {
$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); // $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);
$url = 'https://texttospeech.responsivevoice.org/v1/text:synthesize?lang=pl&engine=g1&name=&pitch=0.5&rate=0.5&volume=1&key=uu8DEkxz&gender=female&text='.urlencode($word);
$audio = file_get_contents_curl($url); $audio = file_get_contents_curl($url);
file_put_contents('mpg/'.$filename.'.mpg', $audio); file_put_contents('mpg/'.$filename.'.mpg', $audio);