Advertisement
Rolcam

Computronics chatbox & speechbox test program

Oct 28th, 2023 (edited)
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. -- Chatter is the chatbox peripheral
  2. chatter = peripheral.wrap("left")
  3. -- Speech is the speechbox peripheral
  4. speech = peripheral.wrap("right")
  5.  
  6. term.clear()   
  7. term.setCursorPos(1,1)
  8. term.setTextColor(colors.green)
  9. print("Text to Speech Transcriber V1")
  10. while true do  
  11.     chat = { os.pullEvent("chat_message") }
  12.     chatter.say("Processing")
  13.     speech.say(chat[4])
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement