raspberry-pi-news

How to Program your Pi to Announce its IP Address @Raspberry_Pi #piday #raspberrypi

June 27, 2014 Kelly

Earbuds 300x225

This tutorial from Interlock Rochester shows you how to program your Pi to announce its IP Address:

Alternately, with a little bit of prep work, perhaps using the above technique to get everything set up to start, you can program your Pi to announce its IP address via audio using text-to-speech.

The essence of this trick is to install a text-to-speech program, create a small script to extract the IP address, to pass that address to the text-to-speech program, and then finally to configure the initialization scripts to run the readout script shortly after booting.

I’m working with a rev B Raspberry Pi running Raspbian, but the approach should be generalizable to any distro for which a TTS package is available.

First, set up the Raspberry Pi with keyboard, mouse, wired networking, and video, either HDMI or analog. If you use analog, you may need to increase the font size considerably even to be able to read the screen. Open a terminal and install festival:

sudo apt-get install festival

Interlock logo

Read more.