Skip to content

Instantly share code, notes, and snippets.

@KenN7
Last active August 28, 2021 15:59
Show Gist options
  • Save KenN7/79e464f30d391c20e9c1292d85c4c00e to your computer and use it in GitHub Desktop.
Save KenN7/79e464f30d391c20e9c1292d85c4c00e to your computer and use it in GitHub Desktop.
How to stream pulse audio

Stream sounds from a computer to a phone, e.g. to a BT speaker connected to the phone:

Phone:

Install SimpleProtocolPlayer NG from F droid Configure with IP of your streaming PC, e.g. 10.0.0.XX, port 12345, set sampling to 48kHz

Streaming PC:

Using pulseaudio:

pactl load-module module-null-sink sink_name=streamtcp format=s16le channels=2 rate=48000

pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 record=true source=streamtcp.monitor port=12345 listen=0.0.0.0

Redirect your apps to the NullSink using pavucontrol or any source control app for pulseaudio

Then click on the phone on play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment