Radio Streaming with a Raspberry Pi
Remote access to radio. Minimal power consumption. Effort: Raspberry Pi, SD-card, power adapter, audio cable, some of your free time.
Install Pi OS lite with imager: https://www.raspberrypi.com/software/
configuration:
sudo raspi-config
Change keyboard layout
Enable ssh
Configure wlan
Now you can plug your Raspberry to your audio device. Connect via ssh and continue configuration.
install mdp and mpc
sudo apt-get install mpd mpc alsa-utils
configure mpd:
Change ownership of /var/lib/mpd/music and /var/lib/mpd/playlists to mpd:audio
Change permission to g+w
sudo nano /etc/mpd.conf
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
}
sudo /etc/init.d/mpd restart
sudo mpc update
Fip Radio https://www.fip.fr/ playlist with multiple channels:
Create file '/var/lib/mpd/playlists/fip-playlist.m3u' with
#EXTM3U
#EXTINF:0,Radio France - FIP
https://icecast.radiofrance.fr/fip-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Reggae
https://icecast.radiofrance.fr/fipreggae-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP World
https://icecast.radiofrance.fr/fipworld-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Nouveautés
https://icecast.radiofrance.fr/fipnouveautes-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Electro
https://icecast.radiofrance.fr/fipelectro-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Jazz
https://icecast.radiofrance.fr/fipjazz-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Groove
https://icecast.radiofrance.fr/fipgroove-hifi.aac?id=radiofrance
#EXTINF:0,Radio France - FIP Rock
https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance
sudo mpc update
Install client ncmpcpp: https://github.com/ncmpcpp/ncmpcpp
Enjoy!