From d8cc5d4ad596255914289edd3629deca21da4919 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 7 Sep 2023 13:43:40 -0600 Subject: [PATCH] Adjust version 2 command --- app/email_queue/resources/functions/transcribe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_queue/resources/functions/transcribe.php b/app/email_queue/resources/functions/transcribe.php index 4f36b1487e..16ad016e2c 100644 --- a/app/email_queue/resources/functions/transcribe.php +++ b/app/email_queue/resources/functions/transcribe.php @@ -151,7 +151,7 @@ if (!function_exists('transcribe')) { //version 2 if (substr($api_url, 0, 32) == 'https://speech.googleapis.com/v2') { - $command = "echo \"{ 'config': { 'auto_decoding_config': {}, 'language_codes': ['".$transcribe_language."'], 'model': 'long' }, 'content': '`base64 -w 0 ".$file_path."/".$file_name.".wav`' } }\" "; + $command = "echo \"{ 'config': { 'auto_decoding_config': {}, 'language_codes': ['".$transcribe_language."'], 'model': 'long' }, 'content': '`base64 -w 0 ".$file_path."/".$file_name."`' } \" "; $command .= "| curl -X POST -H \"Content-Type: application/json\" -H \"Authorization: Bearer \$(gcloud auth application-default print-access-token)\" -d @- ".$api_url; echo $command."\n"; }