The script mutes the local sounds. It's quite simple, we set the $pref::playVoices variable to false, and then to true when we receive a message with a sound attached (it's set back to false immediately so you will still here the messages in the chathud -- but not the local ones) :)