markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.32k stars 292 forks source link

Livestream audio #171

Open ianshady opened 2 years ago

ianshady commented 2 years ago

Is there any way of pushing a livestream radio URL through instead of actual WAV files, so it's broadcast on FM?

macunan commented 2 years ago

Hi this is in the documentation you have to convert the radio stream to wav using sox application:

Example below transmits 91.5 fm my favorite radio

sox -t mp3 https://api.spreaker.com/v2/episodes/47104414/stream -r 22500 -b 16 -e signed -t wav - |fm_transmitter -f 91.5 -d 3 -

Sorry my bad just checked and is not in the documentation