Audio type support

Added audio type detection support.