The study of speech sounds and the structural relationships of the elements of speech within individual words and across language as a whole.