![Logo](data/pics/logo/logo_1530183468.jpg?rand=1316211016)
Test
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.elevenlabs.io/v1/text-to-speech/G7YUtPMrJRl3nXpguNHT?output_format=mp3_44100_192", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\n \"model_id\": \"G7YUtPMrJRl3nXpguNHT\",\n \"voice_settings\": {\n \"stability\": 16,\n \"similarity_boost\": 99,\n \"style\": 10,\n \"use_speaker_boost\": true\n }\n}", CURLOPT_HTTPHEADER => [ "Content-Type: application/json", "xi-api-key: c5da92c6ee2d01732cf2387ab21a792d" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Kaffeezeit