Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremija/parec-server
Encodes PulseAudio stream to flac or mp3 and serves it as a live http stream.
https://github.com/jeremija/parec-server
Last synced: 9 days ago
JSON representation
Encodes PulseAudio stream to flac or mp3 and serves it as a live http stream.
- Host: GitHub
- URL: https://github.com/jeremija/parec-server
- Owner: jeremija
- Created: 2014-12-14T15:12:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-04T15:58:52.000Z (over 9 years ago)
- Last Synced: 2024-04-14T19:48:36.253Z (7 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parec-server
Encodes PulseAudio stream and serves it as a live http stream.
# Background
I decided to write my own server after I found pulseaudio's
`Enable network access to local sound devices` option too cumbersome to setup.I wanted something plain and simple which would serve my currently playing
stream so I can play it on my Sonos device.The only limitation I noticed (which is also present in pulseaudio's network
server, if enabled) is
the latency which is on my system around 5 seconds.Flac encoding is also possible (commented in code), but is disabled as Sonos
only supports `mp3`, `wma` and `aac`.# Installation
```bash
# clone the repository
git clone https://github.com/jere/parec-server.git# run the server
node parec-server
```The server will be available on `http://localhost:2000` or
`http://:2000`.`` must be defined or a default `steam.monitor` will
be used.You can use `pactl load-module module-null-sink sink_name=steam` to use
the default monitor. You then need to redirect your output to that sink. See
details [here](http://askubuntu.com/a/60856/42823).# Requirements
Node.js and a linux machine running PulseAudio