The study of the sound system of a language, including the sounds, patterns, and rules involved in spoken language.