add built in ability for microsoft bing speech to text (#1960)

* add built in ability for microsoft bing speech to text

* move json.lua to lower case and more error checking in record_message

* Replaced Creative Commons json.lua with lunajson.lua which is MIT license

https://github.com/grafi-tt/lunajson/blob/master/LICENSE
This commit is contained in:
Chris Black
2016-11-03 15:11:21 -07:00
committed by FusionPBX
parent 06b94fb1e7
commit e7fae7587e
13 changed files with 1434 additions and 7 deletions

View File

@@ -37,8 +37,8 @@
direct_dial["max_digits"] = 4;
--debug
debug["info"] = false;
debug["sql"] = false;
debug["info"] = true;
debug["sql"] = true;
--get the argv values
script_name = argv[1];
@@ -383,6 +383,9 @@
if (storage_type == "base64") then
table.insert(sql, "message_base64, ");
end
if (transcribe_enabled == "true") then
table.insert(sql, "message_transcription, ");
end
table.insert(sql, "message_length ");
--table.insert(sql, "message_status, ");
--table.insert(sql, "message_priority, ");
@@ -398,6 +401,9 @@
if (storage_type == "base64") then
table.insert(sql, "'"..message_base64.."', ");
end
if (transcribe_enabled == "true") then
table.insert(sql, "'"..transcription.."', ");
end
table.insert(sql, "'"..message_length.."' ");
--table.insert(sql, "'"..message_status.."', ");
--table.insert(sql, "'"..message_priority.."' ");