Not on TC to test it, but one of these may work. Either
udhcpc -b -i wlan0 && aplay file.wav
or the below placed after the dhcp command:
if [ "$?" -eq "0" ];then
aplay file.wav
fi
One of those would work in general use, but with detecting connectivity there may be more to it, like using iwconfig and grepping output.