Chat sounds only working sometimes...intermittently or not at all?

Would it be possible to have a configuration where you are always notified unless you are actively in that channel/chat and actively selected into it?