Train TJBot to Read Direct Messages in Node-RED

JeanCarl Bisson
Aug 24, 2017 · 2 min read

Today we’ll train TJBot how to read direct messages from Twitter using the speak node.

Configure the speak node to speak English, enable the speaker, and add the Watson Text to Speech service credentials.

Remember to set the Speaker Device ID to the card and device number of your speaker. Run the command aplay -l to locate this if you have a USB audio adapter or USB speaker connected.

Speaking the tweet is pretty simple in Node-RED. Since the tweet is placed in the msg.payload property by the Twitter input node, the speak node plays the synthesized audio of the tweet. When a direct message is sent to the TJBot, TJBot will read the tweet and display it in the debug window.

Here’s a video of how to train TJBot to read a direct message from Twitter.

That’s it for today’s skill. What can you train TJBot to do now that it can receive and speak direct messages from Twitter?

Come back tomorrow and we’ll train TJBot to play sounds.

This post is part of a series of skills you can train TJBot to perform.

)

I’m an IBM Technical Innovation Lead. I love to build prototypes and then share how I designed and built what I made so others can try it too.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade