"A person" or "an ornament" are normal instances of 'A' being followed by consonants or vowels. However the rule seems to have exceptions when a word sounds like it starts with the opposite, such as "an hour" or "a url" (when url is pronounced letter by letter).
Is there a name for this kind of exception?