differentiates between text and audio messages