I am trying to create an audio file which will have a base audio and multiple other audios over it. And also when the overlayed audio plays, the background audio should be mute or in lower volume.
For eg: There is a song A.mp3. Over this song, i want to add multiple other audios (1.mp3, 2.mp3, 3.mp3 ......) at a particular time period. Let say, 1.mp3 plays at 5th sec to 8th sec, 2 .mp3 plays at 10th sec to 12th sec and so on. Also this should be added as an overlay such that, background sound will always be playing and when the overlayed audio plays, the background audio should be muted or slowed in volume.
I tried with ffmeg library but haven't found any solution yet.