Minor formatting fixes

master
Brie Bruns 2022-05-13 12:51:30 -06:00
parent 900f9404c7
commit a894db314b
1 changed files with 6 additions and 6 deletions

View File

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