2024-01-28 20:18:18 +03:00
|
|
|
# lonelyradio
|
|
|
|
|
|
|
|
> TCP radio for singles
|
|
|
|
|
|
|
|
Radio that uses unencrypted TCP socket for broadcasting raw PCM (16/44.1/LE) stream
|
|
|
|
|
|
|
|
Decodes audio streams using [symphonia](https://github.com/pdeljanov/Symphonia).
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo build -r
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
```
|
2024-01-29 19:58:20 +03:00
|
|
|
lonelyradio [-a <ADDRESS:PORT>] <MUSIC_FOLDER> [-p] [-w]
|
2024-01-28 20:18:18 +03:00
|
|
|
```
|
|
|
|
|
2024-03-04 16:15:15 +03:00
|
|
|
All files (recursively) will be shuffled and played back. Public log will be displayed to stdout, private to stderr.
|
2024-01-28 20:18:18 +03:00
|
|
|
|
|
|
|
### Clients
|
|
|
|
|
2024-02-25 15:40:23 +03:00
|
|
|
[monoclient](./monoclient) with optional channel separation, hardcoded input (16/44.1/LE).
|
|
|
|
|
|
|
|
```shell
|
|
|
|
monoclient <SERVER>:<PORT> s
|
|
|
|
```
|
|
|
|
|
2024-01-28 20:18:18 +03:00
|
|
|
FFplay (from FFmpeg)
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nc <SERVER> <PORT> | ffplay -f s16le -vn -ac 2 -ar 44100 -nodisp -autoexit -
|
|
|
|
```
|
|
|
|
|
|
|
|
MPV
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nc <SERVER> <PORT> | mpv --audio-channels=stereo --audio-samplerate=44100 --demuxer-rawaudio-format=s16le --demuxer=rawaudio -
|
|
|
|
```
|
|
|
|
|
2024-03-04 16:15:15 +03:00
|
|
|
### Other clients
|
|
|
|
|
|
|
|
SwiftUI client is availible in [platform](./platform) directory.
|
|
|
|
|
2024-01-28 20:18:18 +03:00
|
|
|
## License
|
|
|
|
|
2024-02-25 15:40:23 +03:00
|
|
|
lonelyradio and monoclient are licensed under the terms of the [MIT license](./LICENSE).
|