More work to remove HESITATION from the translation.

This commit is contained in:
FusionPBX 2020-05-21 18:55:41 -06:00 committed by GitHub
parent d03b0e11d6
commit 4672cb1115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
-- Part of FusionPBX
-- Copyright (C) 2013-2019 Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2013-2020 Mark J Crane <markjcrane@fusionpbx.com>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@ -209,7 +209,6 @@
end
end
--Watson
if (transcribe_provider == "watson") then
local api_key = settings:get('voicemail', 'watson_key', 'text') or '';
local transcription_server = settings:get('voicemail', 'watson_url', 'text') or '';
@ -221,7 +220,7 @@
end
local handle = io.popen(transcribe_cmd);
local transcribe_result = handle:read("*a");
transcribe_result = transcribe_result:gsub('*HESITATION ', '');
transcribe_result = transcribe_result:gsub('%%HESITATION ', '');
handle:close();
if (debug["info"]) then
freeswitch.consoleLog("notice", "[voicemail] CMD: " .. transcribe_cmd .. "\n");
@ -318,7 +317,6 @@
freeswitch.consoleLog("notice", "[voicemail] message too short for transcription.\n");
end
end
return '';
end