Project page at Github
App at F-Droid
Preparation on the PC (commands are entered in the terminal)
Install pulseaudio: sudo apt-get install pulseaudio
activate Server: sudo gedit /etc/pulse/default.pa
enter the following as the last line, then save: load-module module-simple-protocol-tcp record=true source=0 channels=2 rate=44100 format=s16le port=12345
Restart pulseaudio: pulseaudio -k
If an audio program has already been started, it must be ended and restarted
Start Simple Protocol Player on the smartphone, IP address of the computer and Set port. The ip address can be found on the computer with ifconfig. Press the start button in the app and start music on the computer. The sound should now also come on the smartphone.
To deactivate the loudspeaker on the PC (because the app has a little latency) Alt + F1 -> Entertainment media -> Start PulseAudio volume control, select Output devices tab and select headphones. After that, at least for me, only the speaker on the smartphone was on.
You can connect several smartphones in the same way.
The data is transmitted unencrypted, so everyone who can reach your computer on this port also receives the audio output.
to change the sample rate, the same sample rate is set on both the smartphone and the computer. In /etc/pulse/default.pa on the computer, the value e.g. changed to rate = 11025. For mono you enter channels = 1, for stereo channels = 2. The values are proportional to the transmission rate, mono needs half as much as stereo, 11025Hz 1/4 as much as 44100 Hz. For comparison: channels = 1 rate = 11025 needs 25kByte / s, many mobile phone providers throttle to 8kByte / s (if you don't over the LAN but wanted to stream mobile phones).
Another note: Streaming music via the Internet or other distribution can be illegal, private use in the LAN at home is usually legal. You are responsible, not me!
Note:
The transmission rate could be reduced by lower bits per sample, see also
Bit depths for pulseaudio freedesktop.org
previous - actual - next BODY