1

I am programming a Rasberry to Pi to become a radio player. It is meant to be used to play the local college radio in the student union hangout.

INPUT: Power is turn on.

OUTPUT: Audio is played through the 3,5 mm jack.

PROCESS: 1) Device boot Raspdebian 2) ... 3) Start playing an ogg stream (/radiocampus_local.m3u)

How can I do this?

Eke
  • 11
  • 3

1 Answers1

1

OK. You can do this by adding a few commands to /etc/rc.local:

amixer cset numid=3 1 # force audio through the headphone jack
ogg123 -@ /home/pi/radiocampus_local.m3u # start playing music!

You may also need to edit /boot/config.txt so that hdmi_drive=0 to ensure audio comes out the 3.5 mm jack.

This assumes that your network is configured correctly, of course.

Fred
  • 4,592
  • 19
  • 29