Difference between revisions of "OE Audio Progs"

From wiki.emacinc.com
Jump to: navigation, search
(start writing)
 
(add more ALSA information)
Line 4: Line 4:
 
ALSA, or the Advanced Linux Sound Architecture, is a part of the Linux Kernel and is a software framework that provides an API for sound devices. The ALSA framework includes several applications for working with sound.
 
ALSA, or the Advanced Linux Sound Architecture, is a part of the Linux Kernel and is a software framework that provides an API for sound devices. The ALSA framework includes several applications for working with sound.
 
<cl>
 
<cl>
* <code>alsamixer</code>  
+
  * <code>alsamixer</code> is an ncurses mixer program for use with the ALSA soundcard drivers. It supports multiple soundcards with multiple devices. The <code>alsamixer</code> menu displays a volume bar for each audio device present on the system. Adjusting these volume bars (with the arrow keys and 'm' for mute) allows changing of the output or input device volume corresponding to the given bar. An example of the <code>alsamixer</code> interface is shown in Figure 1.
* <code>alsactl</code>
+
<br/>
* <code>aplay</code>
+
::[[File:Alsamixer_screen.jpg|600px|thumb|left|Figure 1: Example of <code>alsamixer</code>]]
* <code>arecord</code>
+
<br clear=all>
* <code>speaker-test</code>
+
  * <code>alsactl</code> is  used to control advanced settings for the ALSA soundcard drivers. It supports multiple soundcards. If <code>alsamixer</code> is not able to control all of the audio features of the system, <code>alsactl</code> is the program to turn to.
 +
  * <code>aplay</code> is  a  command-line  soundfile  recorder  for  the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. For supported soundfile formats, the sampling rate, bit depth, and so forth can be  automatically  determined from the soundfile header.
 +
  * <code>arecord</code> is  a  command-line  soundfile  recorder  for  the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. If recording with interleaved mode samples the file is automatically split before the 2GB filesize.
 +
  * <code>speaker-test</code> generates a series of sounds from the different channels of the default (or user specified) audio device. Some example tests include:
 +
<syntaxhighlight lang=bash>
 +
# Outputs a voice identifying each channel
 +
root@emac-oe:~# speaker-test -t wav -l 1 -c 2
 +
 
 +
# Outputs a sine wave tone to each channel
 +
root@emac-oe:~# speaker-test -t sine -l 1 -c 2 -f 550
 +
</syntaxhighlight>
 
</cl>
 
</cl>
  
 
==mpg321==
 
==mpg321==
 
+
mpg321 is a simple and lightweight command line mp3 player. It is designed for use on front ends, shell scripts, as an mp3 player and as an mp3 to wave file decoder (primarily for use with CD-recording software).
 
==Mplayer==
 
==Mplayer==
 +
Mplayer is a video player for Linux. It plays most common video and audio formats. Mplayer is provided for video support but is also used on headless systems for additional audio support.

Revision as of 19:13, 23 January 2014

TODO: {{#todo:Write|Klint Youngmeyer|oe 4,oe 5,ky,inprogress}}

ALSA

ALSA, or the Advanced Linux Sound Architecture, is a part of the Linux Kernel and is a software framework that provides an API for sound devices. The ALSA framework includes several applications for working with sound.

  • alsamixer is an ncurses mixer program for use with the ALSA soundcard drivers. It supports multiple soundcards with multiple devices. The alsamixer menu displays a volume bar for each audio device present on the system. Adjusting these volume bars (with the arrow keys and 'm' for mute) allows changing of the output or input device volume corresponding to the given bar. An example of the alsamixer interface is shown in Figure 1.


Figure 1: Example of alsamixer


  • alsactl is used to control advanced settings for the ALSA soundcard drivers. It supports multiple soundcards. If alsamixer is not able to control all of the audio features of the system, alsactl is the program to turn to.

  • aplay is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header.

  • arecord is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. If recording with interleaved mode samples the file is automatically split before the 2GB filesize.

  • speaker-test generates a series of sounds from the different channels of the default (or user specified) audio device. Some example tests include:

# Outputs a voice identifying each channel
root@emac-oe:~# speaker-test -t wav -l 1 -c 2

# Outputs a sine wave tone to each channel
root@emac-oe:~# speaker-test -t sine -l 1 -c 2 -f 550


mpg321

mpg321 is a simple and lightweight command line mp3 player. It is designed for use on front ends, shell scripts, as an mp3 player and as an mp3 to wave file decoder (primarily for use with CD-recording software).

Mplayer

Mplayer is a video player for Linux. It plays most common video and audio formats. Mplayer is provided for video support but is also used on headless systems for additional audio support.