Install Audio

Author Gravatar Image MIKEY SKLAR

With the Pi connected to the Internet and SSHed in (see our previous tutorial), install the Alsa audio drivers and the mpg123 MP3 Player:

Copy Code
sudo apt-get update
sudo apt-get install alsa-utils mpg123

You'll probably be prompted to continue. Press y for yes.

Next, reboot the Pi by typing sudo reboot. If you're using SSH, you'll have to reconnect after it boots.

Once you're logged back in, load the sound drivers and do some setup for the 3.5mm jack output:

Copy Code
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1
Last updated on 2015-05-04 at 04.25.41 PM Published on 2012-07-29 at 11.58.38 AM