Parcourir la source

Fix a syntax issue

FusionPBX il y a 10 mois
Parent
commit
4341a97e69

+ 5 - 5
resources/classes/transcribe_azure.php

@@ -185,10 +185,10 @@ if (!class_exists('transcribe_azure')) {
 
 
 				//set the request method to POST
 				//set the request method to POST
 				curl_setopt($ch, CURLOPT_POST, true);
 				curl_setopt($ch, CURLOPT_POST, true);
-				
+
 				//send the http headers
 				//send the http headers
 				curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
 				curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-				
+
 				//return the response as a string instead of outputting it directly
 				//return the response as a string instead of outputting it directly
 				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
 
@@ -197,7 +197,7 @@ if (!class_exists('transcribe_azure')) {
 
 
 				//close the handle
 				//close the handle
 				curl_close($ch);
 				curl_close($ch);
- 
+
 				//if a token was returned then use it to make the transcribe request
 				//if a token was returned then use it to make the transcribe request
 				if (empty($access_token)) {
 				if (empty($access_token)) {
 					return false;
 					return false;
@@ -218,7 +218,7 @@ if (!class_exists('transcribe_azure')) {
 
 
 					//send the http headers
 					//send the http headers
 					curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
 					curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-					
+
 					//prepare to send the file or audio
 					//prepare to send the file or audio
 					if (file_exists($this->path.'/'.$this->filename)) {
 					if (file_exists($this->path.'/'.$this->filename)) {
 						//send the file using
 						//send the file using
@@ -226,7 +226,7 @@ if (!class_exists('transcribe_azure')) {
 					}
 					}
 					elseif (!empty($this->audio_string)) {
 					elseif (!empty($this->audio_string)) {
 						//send the audio from as a string
 						//send the audio from as a string
-						curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string));
+						curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string);
 					}
 					}
 					else {
 					else {
 						//audio file or string not found
 						//audio file or string not found

+ 1 - 1
resources/classes/transcribe_watson.php

@@ -204,7 +204,7 @@ if (!class_exists('transcribe_watson')) {
 			}
 			}
 			elseif (!empty($this->audio_string)) {
 			elseif (!empty($this->audio_string)) {
 				//send the audio from as a string
 				//send the audio from as a string
-				curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string));
+				curl_setopt($ch, CURLOPT_POSTFIELDS, $this->audio_string);
 			}
 			}
 			else {
 			else {
 				//audio file or string not found
 				//audio file or string not found