diff --git a/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua b/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua index f15bcd3771..3e107e2f99 100644 --- a/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua +++ b/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua @@ -331,6 +331,7 @@ local message_silence_seconds = settings:get('voicemail', 'message_silence_seconds', 'numeric') or 3; transcribe_enabled = settings:get('voicemail', 'transcribe_enabled', 'boolean') or "false"; local transcribe_provider = settings:get('voicemail', 'transcribe_provider', 'text') or ''; + local email_method = settings:get('email', 'method', 'text') or "smtp"; --debug information if (debug["info"]) then @@ -459,6 +460,11 @@ --start epoch start_epoch = os.time(); + --if using the email queue disable inline transcription + if (email_method == 'queue') then + transcribe_enabled = 'false'; + end + --save the recording -- syntax is session:recordFile(file_name, max_len_secs, silence_threshold, silence_secs) if (storage_path == "http_cache") then