In order to ensure the authenticity and clarity of the sound, I want to bypass the phone speaker and record the sound directly from the phone's sound card. Does the Android system allow this operation and which libraries are used?
Note: The sound is not from the microphone, but from an App inside the phone, which is a bit like the built-in recording function of an old tape recorder