Stream Audio from PC to Android (Ubuntu)
Clone and cd inside the project
- Find you source_name.
pactl list | grep "Monitor Source"
- Open
shareAudio
with editor and replate<source_name_here>
with you source name.
#!/bin/sh
case "$1" in
start)
$0 stop
pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=<source_name_here> record=true port=8000
;;
stop)
pactl unload-module `pactl list | grep tcp -B1 | grep M | sed 's/[^0-9]//g'`
;;
*)
echo "Usage: $0 start|stop" >&2
;;
esac
- Run below command.
./pashare start
netstat -nlt | grep 8000
telnet 127.0.0.1 8000
- Install and connect to your computer ip
or