If you want to record the music you are listening to as background music, you can use the “Mix” function in your voice recorder app. If you want to record your voice only when listening to music, you can use the iPhone's microphone to record and listen to music with headphones.
How do you record your voice with background music?
- Using a DAW Software Such as Audacity or Garage Band. Using the Audacity DAW. ...
- By Using Your SmartPhone and an App. ...
- Leveraging the Overdubbing Capabilities of a Multitrack Recorder. ...
- Using a USB Capable Audio Mixer to Record Yourself Singing With Music. ...
- Using a Multichannel Audio Interface.