Lots of practice and immerse yourself as much as possible in the language and accent you are learning. Really get the sound of it in your head by listening to audio books, radio broadcasts, whatever is available to you and keep practicing repeating what you are hearing, trying to make it sound just like what you heard.