Same words, different feel
"I'm so happy for you" typed out is one thing. Said in your own voice, with a laugh in it, is another. Neither is better. They just carry different things.
Plenty of people have a favourite way to message, and friends do not always share it. That is a normal difference, not a problem to fix.
A few rules of thumb
You might send a text when the message is short, practical or easy to answer later, like a time, a place or a link.
You might send a voice note when you want your tone to come through, like congratulations, a joke or a long story that would take ages to type.
You might call, or wait until you meet, when a subject feels big to you and you would like to hear the other person's reaction as it happens.
Ask once, then remember
If you are unsure what a friend likes, you could just ask: "Are voice notes okay, or do you prefer texts?" Their answer is useful for every message after that.
