random-scripts/stream-desktop-audio
2024-09-26 15:10:21 +02:00
..
dist Add stream-desktop-audio 2024-09-26 15:10:21 +02:00
generate_exe.bat Add stream-desktop-audio 2024-09-26 15:10:21 +02:00
README.md Add stream-desktop-audio 2024-09-26 15:10:21 +02:00
stream.py Add stream-desktop-audio 2024-09-26 15:10:21 +02:00

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)