Thanks for your response. You were right, it was the shaft bearings. I took it to the mechanics, since it was nothing I could fix by myself.
Itβs a automatic Mazda 3. It increases with the speed. At a fixed speed, when it changes gears, the sound stays the same.