Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vindecodex/pcaudiotoandroid
Stream Audio from PC to Android (Ubuntu)
https://github.com/vindecodex/pcaudiotoandroid
android audio shell-script ubuntu
Last synced: about 1 month ago
JSON representation
Stream Audio from PC to Android (Ubuntu)
- Host: GitHub
- URL: https://github.com/vindecodex/pcaudiotoandroid
- Owner: vindecodex
- License: mit
- Created: 2020-10-20T08:14:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-20T08:39:47.000Z (over 4 years ago)
- Last Synced: 2024-12-30T07:52:22.551Z (about 1 month ago)
- Topics: android, audio, shell-script, ubuntu
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PCAudioToAndroid
Stream Audio from PC to Android (Ubuntu)## Instructions
Clone and cd inside the project
1. Find you source_name.
```bash
pactl list | grep "Monitor Source"
```2. Open `shareAudio` with editor and replate `` with you source name.
```bash
#!/bin/sh
case "$1" in
start)
$0 stop
pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source= 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
```
3. Run below command.```bash
./pashare start
netstat -nlt | grep 8000
telnet 127.0.0.1 8000
```4. Install and connect to your computer ip
[Download PulseDroid APK](https://github.com/dront78/PulseDroid/tree/master/bin)
or
[Download Simple Protocol Player](https://play.google.com/store/apps/details?id=com.kaytat.simpleprotocolplayer)
## Source
[StackOverflow](https://superuser.com/questions/605445/how-to-stream-my-gnu-linux-audio-output-to-android-devices-over-wi-fi)