I think "in my head" sounds better. The other way makes it sound like there's a little creature called a voice that is physically inside your head moving around, and you hear it making noise.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.