updated
This commit is contained in:
@@ -35,16 +35,23 @@ local function playInternalAlarm(speakers)
|
||||
end
|
||||
|
||||
local function playTTSFile()
|
||||
-- local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
|
||||
-- local fileName = "tts"
|
||||
local ttsRoute = "https://ttsmp3.com/makemp3_new.php"
|
||||
local fileName = "tts"
|
||||
local params = {
|
||||
msg = "Test",
|
||||
lang = "Gwyneth",
|
||||
source = "ttsmp3"
|
||||
}
|
||||
|
||||
-- local response = http.request({
|
||||
-- url = url,
|
||||
-- method = "POST",
|
||||
-- body = body,
|
||||
-- headers = headers,
|
||||
-- binary = false
|
||||
-- })
|
||||
|
||||
local stringBody = textutils.serialiseJSON(params)
|
||||
local response = http.request({
|
||||
url = ttsRoute,
|
||||
method = "POST",
|
||||
body = stringBody,
|
||||
headers = headers,
|
||||
binary = false
|
||||
})
|
||||
end
|
||||
|
||||
local function createSoundFile(fileName)
|
||||
|
||||
Reference in New Issue
Block a user