The basic problem is accurate pronunciation of all words, once that is done, the second one is the tone, where the accent comes.
We can clearly tell if someone is Chinese but from southern China, and someone who speaks pretty good Chinese but we know he is a foreigner.