updated
This commit is contained in:
@@ -44,7 +44,7 @@ local function playTTSFile(speakers, value)
|
|||||||
if not chunk then break end
|
if not chunk then break end
|
||||||
|
|
||||||
local buffer = decoder(chunk)
|
local buffer = decoder(chunk)
|
||||||
while not speakers.playAudio(buffer) do
|
while not speakers.playAudio(buffer, 200) do
|
||||||
os.pullEvent("speaker_audio_empty")
|
os.pullEvent("speaker_audio_empty")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user