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:

mpc toggle
sleep 5
say() {
        /usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "$*";
PRIVATE=$(ifconfig eth0 | grep "inet addr:" | awk '{ print $2 }')
say "The ethernet IP address is"

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

sleep 5
mpc toggle