top | item 46481380

Show HN: Live audio streaming to FM radio via ALSA on Raspberry Pi

3 points| douxx | 1 month ago

PR: https://github.com/dpipstudio/botwave/pull/25 Project: https://botwave.dpip.lol

1 comment

order

douxx|1 month ago

I've been working on BotWave, which turns a Raspberry Pi into an FM transmitter. A user requested live streaming support so apps like Spotify (via raspotify) or Snapcast could broadcast directly to FM instead of just playing files.

What I did creates an ALSA loopback device that appears as a virtual sound card named "BotWave". Any audio application can output to it for immediate FM transmission. For networked setups, I built PCM streaming using HTTP octet-stream.

Some details: On install, the ALSA snd-aloop module is configured at system level, It uses pyalsaaudio for audio capture (48kHz stereo default), Async/sync generator bridging for the existing broadcast infrastructure, Tested with aplay/VLC/ffmpeg, works reliably

The feature is complete and testable on the livestream-test branch. I'm looking for feedback before merging to main, especially from anyone who's used raspotify or snapcast with ALSA devices. (I wasn't able to use raspotify since i don't have a premium Spotify account)

Project: https://github.com/dpipstudio/botwave