Mirror Android Screen with Sound
Brief
You can’t mirror screen and sound together so we’ll use two different tools to do the job. This method can be done on Linux & Windows but I am using Linux (Debian) in this case.
Tools
Scrcpy - for screen mirror
sndcpy - for sound
Install
Scrcpy:
sudo apt install scrcpy -y
Sndcpy: download the latest release and extract the files
Mirror
Screen with Scrcpy
First, go to your device settings and enable developer mode then, connect your Android device to your computer with your charger.
Run Scrcpy on your computer terminal
Scrcpy
you should see your phone screen on another window like this
Sound with Sndcpy
Run the linux file from the extracted files
./sndcpy
Now you can play anything to check everything.
Recommendation
I use Scrcpy with some switches like:
Scrcpy --turn-screen-off --stay-awake
You can see more on their Github page @ Scrcpy
& while using Sndcpy, just reduce the volume to 0% on the phone so you don’t hear “echo”
that’s it ✌🏽