Everyone who learns a foreign language encounters the problem of accent. This is due to the peculiarities of the functioning of the organs of the speech apparatus, which is formed in infancy. It is completely impossible to remove the accent, but it is in your power to minimize it.
It is necessary
Development of ear for music, recordings with examples of ideal pronunciation in a foreign language, language environment, textbooks and audio exercises in a foreign language
Buy a phonetics textbook with audio course. If you are learning a foreign language, you should start with phonetic exercises. For self-study, they most often use special textbooks released with an audio course. Alas, you will have to control the pronunciation yourself. If you study with a teacher, he will be able to correct the shortcomings.
Listen to foreign speech more. When listening to songs in a foreign language, films without translation, TV shows, you not only learn useful information, but also learn to speak correctly: the brain fixes the pronunciation rate, inside a person, as it were, pronounces the words spoken by other people. If you do this deliberately, you will be able to control the onomatopoeia of the original. Repeat after the announcers and out loud, this will sooner or later lead to the desired result. Even if the foreign language is in the background, it is useful, since latently you still hear the correct pronunciation.
Chat with native speakers of a foreign language. Communication is what we learn another language for. You need to tirelessly practice colloquial speech, not only to replenish vocabulary and repeat the rules of grammar, but also to check your pronunciation with the pronunciation of the same words by a native speaker. Does he understand you? Asks again? Ask to correct your phonetic shortcomings: from the outside it is always better to know which sounds or sound combinations need to be additionally worked on.
Learn to distinguish between dialects of a foreign language. Of course, this is aerobatics, but still: if you hear differences in the pronunciation of the inhabitants of the south and north of the same country, consider yourself lucky. Either you have excellent hearing, which will help you cope with accent, or you are unusually observant, which also helps in correcting sounds. Try to pronounce different variants of words with different accents, then your own will become just one of the colors in the palette!