Difference between revisions of "ALSA"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(Created page with "ALSA or the Advanced Linux Sound Architecture provides audio support for Linux. It is a replacement for the old OSS linux sound system. The Alsa-utils package contains both ...")
 
m
Line 1: Line 1:
ALSA or the Advanced Linux Sound Architecture provides audio support for Linux.  It is a replacement for the old OSS linux sound system.  The Alsa-utils package contains both the Alsamixer and Amixer utilities.
+
ALSA or the Advanced Linux Sound Architecture provides audio support for Linux.  It is a replacement for the old OSS linux sound system.  The Alsa-utils package contains both the Alsamixer and Amixer utilities.  Various linux distributions once used the Open Sound System, or OSS until ALSA superseded it.  ALSA provides kernel driven sound card drivers and bundles a user space driven library for application developers.
  
 
You can control the audio properties of your sound cards through:
 
You can control the audio properties of your sound cards through:
Line 7: Line 7:
 
==CLI Utilities==
 
==CLI Utilities==
  
===Alsamixer===
+
===alsamixer===
 
ncurses based utility with visual representation of various levels.
 
ncurses based utility with visual representation of various levels.
 
  alsamixer
 
  alsamixer
  
 +
Enable the microphone:  switch to the Capture tab with F4 and enable a channel with Space.
  
 
+
===mixer===
===Amider===
+
 
Command line, operation performed per command.
 
Command line, operation performed per command.
 
  amixer -c [card-number] set [control] [value]
 
  amixer -c [card-number] set [control] [value]
Line 21: Line 21:
 
If you are sudo there are more controls available
 
If you are sudo there are more controls available
 
  sudo amixer scontrols
 
  sudo amixer scontrols
 +
 +
===apulse===
 +
The apulse utility lets you use ALSA for applications that support only PulseAudio for sound.
 +
 +
===aplay===
 +
Alsa play - play an audio file
 +
 +
===speaker-test===
 +
as the name implies
  
  
 
[[Category:Computer_Technology]]
 
[[Category:Computer_Technology]]
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 16:11, 25 March 2021

ALSA or the Advanced Linux Sound Architecture provides audio support for Linux. It is a replacement for the old OSS linux sound system. The Alsa-utils package contains both the Alsamixer and Amixer utilities. Various linux distributions once used the Open Sound System, or OSS until ALSA superseded it. ALSA provides kernel driven sound card drivers and bundles a user space driven library for application developers.

You can control the audio properties of your sound cards through:

  • Alsamixer-The graphical interface for ALSA
  • Amixer-The command based utility for ALSA

CLI Utilities

alsamixer

ncurses based utility with visual representation of various levels.

alsamixer

Enable the microphone: switch to the Capture tab with F4 and enable a channel with Space.

mixer

Command line, operation performed per command.

amixer -c [card-number] set [control] [value]

To see what controls you can manage

amixer scontrols

If you are sudo there are more controls available

sudo amixer scontrols

apulse

The apulse utility lets you use ALSA for applications that support only PulseAudio for sound.

aplay

Alsa play - play an audio file

speaker-test

as the name implies