Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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