Skip to content

Instantly share code, notes, and snippets.

@matiaspl
Last active December 13, 2023 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiaspl/d5b004eb3056cd0024153d896887047b to your computer and use it in GitHub Desktop.
Save matiaspl/d5b004eb3056cd0024153d896887047b to your computer and use it in GitHub Desktop.
Internet radio to regular radio with 50us (European) preemphasis and RDS using pifmrds - runs fine on RPi1 (sox firfit used as the audio processor)
20 0.000
50 0.001
100 0.004
400 0.068
1000 0.409
2000 1.445
3000 2.761
4000 4.115
5000 5.400
6000 6.583
7000 7.661
8000 8.643
9000 9.540
10000 10.362
11000 11.120
12000 11.882
13000 12.475
14000 13.084
15000 13.656
#!/bin/sh
sox -t mp3 http://SHOUTCAST_URL -t au - vol -3dB firfit preemphasis.ff | pv -C -B 180k -T -r | pifmrds -freq 95.3 -audio - -ps "PirateFM" -rt "☠️☠️☠️" -ctl /tmp/rds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment