Введите текст:


ermil
evil
"wav", "lang" => "ru-RU", "speaker" => $voice, "quality"=>"hi", "key" => "ec0775bc-dbd7-4265-a3a1-b54d26811d77", "emotion" => $emotion, "speed"=>$speed, "text" => $text)) ; $file_name = time().".wav"; $file_pointer = fopen($file_name,"w"); $soundfile = file_get_contents("https://tts.voicetech.yandex.net/generate?".$qs); fwrite($file_pointer,$soundfile); header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filename="'.$file_name.'"'); $result = [ "status"=>0, "file_name"=>$file_name ]; echo json_encode($result);
Made on
Tilda