kopia lustrzana https://github.com/sq9atk/sr0wx
poprawka generatora sampli
rodzic
23425c2eb9
commit
5b76ada19f
|
@ -3,3 +3,6 @@
|
|||
imgwpodest_data/*
|
||||
propagacja.png
|
||||
sr0wx.log
|
||||
|
||||
audio_generator/ogg/*
|
||||
audio_generator/mpg/*
|
||||
|
|
|
@ -33,7 +33,10 @@ function azAZ09($string)
|
|||
|
||||
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);
|
||||
|
||||
file_put_contents('mpg/'.$filename.'.mpg', $audio);
|
||||
|
|
Ładowanie…
Reference in New Issue