my RPi will tell me its IP address

When my Raspberry PI starts, it has no display because I’m using it as a MusicPlayer with Volumio. To use my tablet, smartphone or laptop to control Volumio, I need to know the IP address because the NetBIOS names often does not work. So, I made a script (based on an example somewhere on the Internet I forgot) that let the Raspberry PI tell me its IP address by using Google’s translate speech engine. Just in case there is something playing at startup, I use mpc to let it toggle to stop and play again at the end. Here’s the script:

#!/bin/bash
mpc toggle
sleep 5
say() {
        /usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?tl=en&q=$*";
}
PRIVATE=$(ifconfig eth0 | grep "inet addr:" | awk '{ print $2 }')
PRIVATE=${PRIVATE:5}
say "The ethernet IP address is"
say $PRIVATE

PRIVATE1=$(ifconfig wlan0 | grep "inet addr:" | awk '{ print $2 }')
PRIVATE1=${PRIVATE1:5}
say "The wifi IP address is"
say $PRIVATE1

sleep 5
mpc toggle

.Nico