0% found this document useful (0 votes)
291 views8 pages

Raspberry Pi Command Line Audio PDF

The document provides instructions for playing audio on the Raspberry Pi through the command line. It details how to load audio drivers at startup, download sample audio files, and use commands like aplay, mpg321, and omxplayer to play wav, mp3, and other audio file formats from the terminal. The goal is to demonstrate basic audio playback functionality without using a graphical interface.

Uploaded by

Steve Attwood
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
291 views8 pages

Raspberry Pi Command Line Audio PDF

The document provides instructions for playing audio on the Raspberry Pi through the command line. It details how to load audio drivers at startup, download sample audio files, and use commands like aplay, mpg321, and omxplayer to play wav, mp3, and other audio file formats from the terminal. The goal is to demonstrate basic audio playback functionality without using a graphical interface.

Uploaded by

Steve Attwood
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.

uk/2013/06/raspberry-pi-command-line-audio/

1 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

lsmod | grep snd_bcm2835

sudo modprobe snd_bcm2835

cd /etc
sudo nano modules

1 # /etc/modules: kernel modules to load at boot time.


2 #
3 # This file contains the names of kernel modules that should be
4 # loaded at boot time, one per line. Lines beginning with "#" are
5 # ignored. Parameters can be specified after the module name.
6
7 snd-bcm2835

amixer cset numid=3 n

amixer cset numid=3 1

wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav
wget http://www.freespecialeffects.co.uk/soundfx/computers/bleep_01.wav

2 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

aplay police_s.wav

sudo apt-get -y install mpg321

wget http://www.freespecialeffects.co.uk/soundfx/household/bubbling_water_1.mp3

mpg321 bubbling_water_1.mp3

mpg321 -g 50 bubbling_water_1.mp3

omxplayer

sudo apt-get -y install omxplayer

omxplayer bubbling_water_1.mp3

3 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

Select Month

4 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

5 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

6 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

7 of 8 5/5/17, 8:53 PM
Raspberry Pi Command Line Audio http://www.raspberrypi-spy.co.uk/2013/06/raspberry-pi-command-line-audio/

8 of 8 5/5/17, 8:53 PM

You might also like