Pronunciation is the only determining factor.
If the noun or adjective being used starts with a VOWEL SOUND, then it should be preceded by "an." Here are some examples:
An apple, an argument, an uncle, an old man, an amazing story, an autobiography.
If the noun or adjective being used starts...