Acquiring auditory and phonetic categories