The process by which the nature and meaning of gustatory stimuli are recognized and interpreted by the brain. The four basic classes of taste perception are salty, sweet, bitter, and sour.