The study of the sound system of a language. This includes phonemes, allophones, phonotactics, and syllable structure.