Raspberry PI – Install Audio and MPC/MPD

# Install Audio
sudo apt-get -y install alsa-utils mpg321 lame
sudo modprobe snd-bcm2835

# Set audio output to analog (0=auto, 1=analog, 2=HDMI)

# in this example the “1” is the option you would change to 2 if you wanted to use the HDMI jack
sudo amixer cset numid=3 1

# Test Audio
aplay /usr/share/sounds/alsa/Front_Center.wav
speaker-test -t sine -f 440 -c 2 -s 1

#Install MPD and MPC audio players
sudo apt-get install -y mpd mpc
sudo service mpd stop
sudo chmod -R g+w /var/lib/mpd
sudo chmod -R g+w /var/run/mpd

#remove bind to address
sudo nano /etc/mpd.conf

#Find the line that says bind_to_address “localhost”,  and put a # in front of it or remove the entire line




sudo shutdown -r now


One thought on “Raspberry PI – Install Audio and MPC/MPD

  1. Pingback: BBC Streaming Radio Build | I like Pi

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s