Examining the patterns and rules governing the organization of speech sounds in a language or dialect.