Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc45ad7
commit 6573e52
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# Playing audio on the Raspberry Pi | ||
|
||
To play an MP3 file, navigate to the location of the .mp3 file in the terminal using `cd` and then type the following command: | ||
|
||
``` | ||
omxplayer example.mp3 | ||
``` | ||
|
||
This will play the audio file `example.mp3` through either your monitor's built-in speakers or your headphones - connected via the headphone jack. | ||
|
||
If you need an example file you can download one from here using the following command: | ||
|
||
``` | ||
wget http://goo.gl/MOXGX3 -O la.mp3 --no-check-certificate | ||
``` | ||
|
||
If you cannot hear anything, make sure your headphones or speakers are connected correctly. Be sure to check your audio configuration settings, as described below. | ||
|
||
## Audio Configuration | ||
|
||
To switch your audio output between HDMI and the headphone jack, use either the `raspi-config` tool or the `amixer` command. See [audio configuration](../configuration/audio-config.md) |