Phonaesthetics is the claim or study of inherent pleasantness or beauty (euphony) or unpleasantness (cacophony) of the sound of certain linguistic utterances. Poetry is often considered euphonic, as is well-crafted literary prose. Important phonaesthetic devices of poetry are rhyme, assonance and alliteration. Closely related to euphony and cacophony is the concept of consonance and dissonance.
From this meaning should be distinguished the closely related but different concept of phonaesthesia, which does not refer directly to aesthetic attributes of sound, but to phonetic elements that are inherently associated with a semantic meaning. The term was introduced by J. R. Firth in 1930 "The phonæsthetic habits [...] and are of general importance in speech." Firth defined a phonaestheme as "a phoneme or cluster of phonemes shared by a group of words which also have in common some element of meaning or function, though the words may be etymologically unrelated."