Fix the indentation and white space.
This commit is contained in:
parent
056ee9f10b
commit
8100f968c3
|
|
@ -234,7 +234,6 @@
|
||||||
return ''
|
return ''
|
||||||
else
|
else
|
||||||
status, transcribe_json = pcall(JSON.decode, transcribe_result);
|
status, transcribe_json = pcall(JSON.decode, transcribe_result);
|
||||||
|
|
||||||
if not status then
|
if not status then
|
||||||
if (debug["info"]) then
|
if (debug["info"]) then
|
||||||
freeswitch.consoleLog("notice", "[voicemail] error decoding watson json\n");
|
freeswitch.consoleLog("notice", "[voicemail] error decoding watson json\n");
|
||||||
|
|
@ -243,7 +242,6 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if (transcribe_json["results"] ~= nil) then
|
if (transcribe_json["results"] ~= nil) then
|
||||||
--Transcription
|
--Transcription
|
||||||
if (transcribe_json["results"][1]["alternatives"][1]["transcript"] ~= nil) then
|
if (transcribe_json["results"][1]["alternatives"][1]["transcript"] ~= nil) then
|
||||||
|
|
@ -271,7 +269,6 @@
|
||||||
freeswitch.consoleLog("notice", "[voicemail] CONFIDENCE: (null) \n");
|
freeswitch.consoleLog("notice", "[voicemail] CONFIDENCE: (null) \n");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return transcription;
|
return transcription;
|
||||||
else
|
else
|
||||||
if (debug["info"]) then
|
if (debug["info"]) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue