fix: add voice parameter to TTS URL in playTTSFile function
This commit is contained in:
@@ -36,7 +36,8 @@ end
|
||||
|
||||
local function playTTSFile(speakers, value)
|
||||
local message = textutils.urlEncode(value)
|
||||
local url = "https://music.madefor.cc/tts?text=" .. message
|
||||
local voice = "&voice=en-gb-scotland"
|
||||
local url = "https://music.madefor.cc/tts?text=" .. message .. voice
|
||||
local response, err = http.get { url = url, binary = true }
|
||||
if not response then error(err, 0) end
|
||||
while true do
|
||||
|
||||
Reference in New Issue
Block a user