How about $ebeeps(params) where parameters can be: connect, disconnect, join, part, invite, kick, query, notice, send, chat, success, fail or flash.

//echo -a $ebeeps(notice) returns $true if it has sound and $false if it has no sound.