This question already has an answer here:

How to record songs while listening (from online source) on Android 4.4/Nexus 5.

I am not able to find any apps for this. All voice recorder apps seems to be supporting only background sound, and not the device sound output (in earphone).

marked as duplicate by Dan Hulme Jun 27 '16 at 13:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.