omxplayer song.m4a
In the background
omxplayer --no-keys -o local sample.mp3 &
check devices (look for Headphones)
aplay -l
play a sound (this will make a high pitched sound to your speaker) - no sound? not working!:
gst-launch-1.0 audiotestsrc ! audioresample ! alsasink device=hw:0,0
or gst-launch-1.0 audiotestsrc ! audioresample ! alsasink device=hw:1,0
aplay /tmp/goodmorning.m4a
omxplayer /tmp/goodmorning.m4a
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3```
## Testing
`aplay -Dhw:1,0 /usr/share/sounds/alsa/Front_Center.wav`
## USB
`omxplayer -o alsa:hw:1,0 --vol 10 /home/pi/thebill.mp3`