updated speaker driver
This commit is contained in:
@@ -36,7 +36,9 @@ local function stepDown()
|
||||
reactor.setBurnRate(value - rateStep)
|
||||
end
|
||||
end
|
||||
|
||||
local function startup()
|
||||
return
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
|
||||
@@ -32,6 +32,7 @@ end
|
||||
|
||||
|
||||
local function startup()
|
||||
return
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
|
||||
@@ -37,7 +37,7 @@ end
|
||||
local function playTTSFile(speakers, value)
|
||||
local message = textutils.urlEncode(value)
|
||||
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 }
|
||||
if not response then error(err, 0) end
|
||||
while true do
|
||||
|
||||
@@ -36,6 +36,7 @@ local function checkSteamLevel()
|
||||
end
|
||||
|
||||
local function startup()
|
||||
return
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
|
||||
Reference in New Issue
Block a user