Преглед на файлове

Merge pull request #1 from tony1661/patch-1

fix the get voices method
FusionPBX преди 1 година
родител
ревизия
883c08603d
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      resources/classes/speech_elevenlabs.php

+ 3 - 0
resources/classes/speech_elevenlabs.php

@@ -172,6 +172,8 @@ class speech_elevenlabs implements speech_interface {
 			CURLOPT_TIMEOUT => 30,
 			CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
 			CURLOPT_CUSTOMREQUEST => "GET",
+			CURLOPT_CUSTOMREQUEST => "GET",
+			CURLOPT_HTTPHEADER => $headers,
 		]);
 
 		$response = curl_exec($curl);
@@ -232,6 +234,7 @@ class speech_elevenlabs implements speech_interface {
 				CURLOPT_TIMEOUT => 30,
 				CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
 				CURLOPT_CUSTOMREQUEST => "GET",
+				CURLOPT_HTTPHEADER => $headers,
 			]);
 			$response = curl_exec($curl);
 			$error = curl_error($curl);