How LLMs are learning to differentiate spatial sounds