https://github.com/parazyd/plebaudio
Sound streaming in shambles
https://github.com/parazyd/plebaudio
alsa pcm sound-streaming udp unix
Last synced: about 1 year ago
JSON representation
Sound streaming in shambles
- Host: GitHub
- URL: https://github.com/parazyd/plebaudio
- Owner: parazyd
- License: agpl-3.0
- Created: 2023-11-02T21:30:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T21:40:23.000Z (over 2 years ago)
- Last Synced: 2025-01-17T18:01:27.611Z (about 1 year ago)
- Topics: alsa, pcm, sound-streaming, udp, unix
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
plebaudio
=========

plebaudio is a no-bullshit script demonstrating how to use a FIFO pipe
to stream data over UDP.
It is intended to be used as a sound server. For example, `mpv` is able
to output raw PCM audio using `--ao=pcm --ao-pcm-file=/some/fd`. We
can use this to our advantage and create a simple audio streaming
protocol.
Server-side, we can just run:
```
$ socat -b 2048 STDIO UDP-LISTEN:2115 | aplay
```
Locally, we can run `plebaudio` and then play something with `mpv`:
```
$ plebaudio my-sound-server:2115
$ mpv 'https://yewtu.be/watch?v=Mw__xMOkrRE' --ao=pcm --ao-pcm-file=/tmp/plebaudio.sock
```
Quit `plebaudio` with `^C`.
## License
GNU AGPL v3