Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parazyd/plebaudio
Sound streaming in shambles
https://github.com/parazyd/plebaudio
alsa pcm sound-streaming udp unix
Last synced: about 1 month 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-02T21:40:23.000Z (about 1 year ago)
- Last Synced: 2024-05-01T16:57:39.088Z (7 months ago)
- Topics: alsa, pcm, sound-streaming, udp, unix
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
plebaudio
=========![](meme.jpg)
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