Home Creators Posts Import Register Favorites Logout

Content

Day 16 of my advent calendar tutorial series, and today's video is about text-to-speech synthesis. I've previously shown how you can play a pre-recorded MP3 file or WAV file in Node-RED (which can be triggered manually by an escape room gamesmaster, or triggered by an Arduino or Raspberry Pi controller, say). But you can also just send a text string to the Node-RED Audio Out node; when you do that, it passes it to the operating system's built-in Text-To-Speech engine and sends the generated audio to all clients connected to the Node-RED dashboard.

This means you could create an immediate audio response that changed depending on the  user input to a puzzle, read out the time remaining on the  game timer at predefined intervals, or create an audio hint system that generated hints dynamically based on the current state of any puzzles in the room, for example.  Let me know if you can think of other example uses!

 

Files

Dynamic Text to Speech Synthesis using Node-RED

In a previous video (found here: https://youtu.be/8nhfdMpue_M) I described my escape room control software, which can play background soundtrack music and sound effects saved as WAV or MP3 files by passing them to the Audio Out node of the Node-RED dashboard. But as well as playing pre-recorded audio files, the NodeRED Audio Out node can also read out any arbitrary text string passed to it, which it does using the built-in text-to-speech engine of the operating system on which it is running. This could be Windows, Linux, or Raspberry Pi. In an escape room, you could use this to play an audio response to user input, to read out the time remaining on the game timer, or to create an audio hint system that reacted to the current state of an Arduino or Raspberry Pi controller in the room, for example. Part of my Escape Room Tech Advent Calender for 2019! For my Escape Room tech projects, see https://www.patreon.com/playfultech

Comments

Michael

how can we realize with nodered a communication with the audience in the room? LIVE Communication we have RPI with touchscreens in the rooms. And can place a micro in it.