Is there a way to record in game audio?

I’m making a game like drumpads where you can make music from clicking on these launch pads.
Here is what I have for now
the game won’t be that fun if you can’t record what you made so I was wondering if there is a way to record the in game audio and export it as an mp3 file or wav.

There is no way, sorry