updated speaker driver

This commit is contained in:
2025-06-16 19:06:13 -04:00
parent da19dc6381
commit da8210f635
4 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,9 @@ local function stepDown()
reactor.setBurnRate(value - rateStep)
end
end
local function startup()
return
end
local function shutdown()

View File

@@ -32,6 +32,7 @@ end
local function startup()
return
end
local function shutdown()

View File

@@ -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

View File

@@ -36,6 +36,7 @@ local function checkSteamLevel()
end
local function startup()
return
end
local function shutdown()