You can use your speakers while using your distro to get all that nice music from Spotify (or anything) while you code. We use Pulse Audio to get that sound out of the PRoot container to your Android's speakers.
Just follow these steps correctly in order to have sound output enabled-
Just close the distro if you have it opened with running exit inside Termux. Ignore this step if you haven't have your distro working.
Run the following command in Termux (Not inside Linux)
pkg install wget && wget https://andronixos.sfo2.cdn.digitaloceanspaces.com/OS-Files/setup-audio.sh && chmod +x setup-audio.sh && ./setup-audio.sh
This should enable you to have sound inside the distro.
If you are still not able to get the audio output or the audio stops after a certain time then open a new Termux session and type: