Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- master.lua
- -- Broadcast a long test paragraph to all terminals for TTS playback
- local modemSide = "back" -- change this to the side your wireless modem is on
- rednet.open(modemSide)
- -- The long test paragraph to broadcast (can be edited)
- local testParagraph = [[
- Good afternoon, everyone. This is a system test of the text-to-speech broadcast network. In a few moments, you will hear a series of sentences designed to evaluate clarity, pronunciation, and synchronization across all connected speakers.
- ]]
- -- Optional: number of times to broadcast (1 = once)
- local repeatCount = 1
- -- Optional: seconds to wait between repeats
- local repeatDelay = 2
- for i = 1, repeatCount do
- print(string.format("Broadcasting TTS message (%d/%d)...", i, repeatCount))
- rednet.broadcast({ type = "tts", text = testParagraph })
- print("Broadcast sent.")
- if i < repeatCount then
- sleep(repeatDelay)
- end
- end
- print("All broadcasts completed.")
Advertisement
Add Comment
Please, Sign In to add comment