Minor formatting fixes
parent
900f9404c7
commit
a894db314b
|
@ -4,7 +4,7 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Asterisk Voicemail Transcribe Wrapper
|
Asterisk Voicemail Transcribe Wrapper
|
||||||
Version: 0.5
|
Version: 0.5.1
|
||||||
Date: 5/13/2022
|
Date: 5/13/2022
|
||||||
License: This work is licensed under CC BY-SA 4.0
|
License: This work is licensed under CC BY-SA 4.0
|
||||||
URL: https://git.sosdg.org/brielle/asterisk-scripts
|
URL: https://git.sosdg.org/brielle/asterisk-scripts
|
||||||
|
@ -47,9 +47,9 @@ if (isset($wavFile)) {
|
||||||
curl_setopt_array($submitWatsonSTT, array(
|
curl_setopt_array($submitWatsonSTT, array(
|
||||||
CURLOPT_CONNECTTIMEOUT => '15',
|
CURLOPT_CONNECTTIMEOUT => '15',
|
||||||
CURLOPT_TIMEOUT => '120',
|
CURLOPT_TIMEOUT => '120',
|
||||||
CURLOPT_URL => $apiURL.$apiURLRecognize,
|
CURLOPT_URL => $apiURL.$apiURLRecognize,
|
||||||
CURLOPT_RETURNTRANSFER => TRUE,
|
CURLOPT_RETURNTRANSFER => TRUE,
|
||||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||||
CURLOPT_USERPWD => 'apikey:'.$apiKey,
|
CURLOPT_USERPWD => 'apikey:'.$apiKey,
|
||||||
CURLOPT_HTTPHEADER => array( 'Content-Type: audio/wav' ),
|
CURLOPT_HTTPHEADER => array( 'Content-Type: audio/wav' ),
|
||||||
CURLOPT_POSTFIELDS => $wavFile
|
CURLOPT_POSTFIELDS => $wavFile
|
||||||
|
@ -74,8 +74,8 @@ $headers = array(
|
||||||
"To" => $mailData['headers']['to'],
|
"To" => $mailData['headers']['to'],
|
||||||
"Subject" => $mailData['headers']['subject'],
|
"Subject" => $mailData['headers']['subject'],
|
||||||
"Message-ID" => $mailData['headers']['message-id'],
|
"Message-ID" => $mailData['headers']['message-id'],
|
||||||
'X-Asterisk-CallerID' => $mailData['headers']['x-asterisk-callerid'],
|
"X-Asterisk-CallerID" => $mailData['headers']['x-asterisk-callerid'],
|
||||||
'X-Asterisk-CallerIDName' => $mailData['headers']['x-asterisk-calleridname'],
|
"X-Asterisk-CallerIDName" => $mailData['headers']['x-asterisk-calleridname'],
|
||||||
);
|
);
|
||||||
|
|
||||||
$sendMimeMail = new Mail_mime();
|
$sendMimeMail = new Mail_mime();
|
||||||
|
|
Loading…
Reference in New Issue