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