Because of assimilation. When -val/-vel follows a word ending in a consonant, the v assimilates to the preceding consonant and that consonant doubles:
Hungarian word order is flexible and governed by emphasis (focus).
Put nem before the finite verb: Nem szeretek beszélni a barátommal.
Don’t say Szeretek nem beszélni… unless you literally mean “I like not to talk …,” which is a different meaning.
barát is typically “male friend.” For a female friend (or “girlfriend”), use barátnő.
So: barátnőmmel = “with my female friend/girlfriend.”
Ambiguity exists: barátom can also mean “my boyfriend” contextually.
a barátaimmal. Formation:
Yes: vele = “with him/her.”
Szeretek vele beszélni.
Remember Hungarian has one third-person pronoun (ő/őt/vele) for both genders.
Both are correct:
Use a before a consonant sound and az before a vowel sound:
Nem szeretek a barátommal a politikáról beszélni.