How to record voice with background music

hello , i am try to make app ,
for exmaple , play music (abc.mp3) and and record my voice in same time

to after that i get a new sound file that have mix my voice with music

any idea ?

i have create a app to recorded voice only , but i looking for play music and record in same time

This question does not appear to be related to the ionic framework.

Check out the Web Audio API for Javascript. Examples can be found here: