updated speaker driver
This commit is contained in:
@@ -36,7 +36,9 @@ local function stepDown()
|
|||||||
reactor.setBurnRate(value - rateStep)
|
reactor.setBurnRate(value - rateStep)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function startup()
|
local function startup()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local function shutdown()
|
local function shutdown()
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
local function startup()
|
local function startup()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local function shutdown()
|
local function shutdown()
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ end
|
|||||||
local function playTTSFile(speakers, value)
|
local function playTTSFile(speakers, value)
|
||||||
local message = textutils.urlEncode(value)
|
local message = textutils.urlEncode(value)
|
||||||
local voice = "&voice=en-gb-scotland"
|
local voice = "&voice=en-gb-scotland"
|
||||||
local url = "https://music.madefor.cc/tts?text=" .. message .. voice
|
local url = "http://api.astrocore.space/TextToSpeech?message=" .. message
|
||||||
local response, err = http.get { url = url, binary = true }
|
local response, err = http.get { url = url, binary = true }
|
||||||
if not response then error(err, 0) end
|
if not response then error(err, 0) end
|
||||||
while true do
|
while true do
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ local function checkSteamLevel()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function startup()
|
local function startup()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local function shutdown()
|
local function shutdown()
|
||||||
|
|||||||
Reference in New Issue
Block a user