In English pronunciation, many non-native English speakers, like you, pronounce a voiceless sound when it should be a voiced sound.

Let me repeat that,

A common error you probably are making is saying a voiceless sound like /p/ when you should be saying a voiced sound like /b/. This mistake usually happens on sounds that are pairs because the mouth shape is in the exact same position, the only difference is the voicing. So you can see how it would be easy to make that mistake.
Saying the voiceless sound when it should be voiced usually happens when a voiced sound is at the end of a word.

Again, you might say the /p/ when it should be /b/ or a /k/ when it should be /g/.
For example, you might say ‘cup’ when you really mean to say ‘cub’ or you might say ‘rack’ when you really mean to say ‘rag’.