2019 Tech Tutorial Advent Calendar Day 16: Dynamic Text-To-Speech Synthesis using Node-RED (Patreon)
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!