Recording Voice over Music Track to match what I hear

I’m singing (rapping, actually) over a karaoke track. I know the song by heart. When I rap over the track, I hear the music at a certain speed, and rap accordingly. When I play back the track however, my rap starts out immediately behind a beat or so when I actually started rapping. Does it have anything to do with how I imported the track? I didn’t choose import audio: I opened the mp3 file and immediately saved it as a Project file before I started rapping over it. Thanks!

It’s inevitable. Use Time Shift Tool (F5) or the “Latency Correction” setting in Audacity’s Recording Preferences to correct it. See