The study of the sound system of a given language and the analysis and classification of its phonemes.
Subfield of linguistics.