.. | ||
dist | ||
generate_exe.bat | ||
README.md | ||
stream.py |
stream-desktop-audio
Just as the name implies, this light piece of software makes your windows output device audio stream available on a http webserver.
By starting the program it loads up a simple webserver listening on all addresses port 5000. The stream URL can be found at /stream.wav
Once a request is made the default output device is opened and a WAV header is generated. The header is passed through to the request and the PCM audio stream is appended in chunks.
Why
The radioplayer at work can open any arbitrary URL as long as the codec is supported. Sometimes people want to requests songs. And being able to play it on the computer which the radioplayer reads from is much easier. Otherwise we are still limited to online radio stations. The beautiful part is that this works locally and is quite responsive. Also some gags can be played out on the work PA system by a TTS voice (not included functionality).
Limitations
- Works only on Windows
- Only uses the default output device
- Streams are PCM16LE only, no transcoding
- Stream address and port are fixed
So pretty much no configurability at all (for now)