There are different ways to record device audio from Android devices. Since Android 10, Google introduced a way for apps to capture audio via a broad audio input sharing API. The app developer can deactivate support for the audio API. As a result, you can’t record audio from some Android apps. In an earlier post, we discussed how Tecno users can record screen on Tecno device along with the audio from microphone and the device itself.
In fact, you can also use an audio cable to directly route the audio from your Android device to your PC, then use a sound recorder app on the computer to record the sound from your Android phone.

You don’t need any advanced software, just the stock voice recorder on Windows computer. A basics 3.5 mm male to male stereo audio aux cable is all you need. Plug one end into the headphone jack on your Android phone, the other end into the line-in (or microphone) jack on your PC. Desktop computers usually have different audio jacks for microphone input, audio output, and aux line input. On laptops, the microphone port is typically the headphone jack. If your laptop has two audio ports, find the microphone symbol identifying the audio-in mic.
On my ASUS laptop which comes with the Realtek Audio Driver and Console. When the aux line is connected, the Realtek Audio Console pops up automatically. In the Device Advanced settings, you can check the connector settings and connector re-tasking. In the Analog drop-down menu, choose Mic In. See below figure.

Then we can launch the stock Voice Recorder app on Windows 10 to record the internal audio from our Android device on our PC.