Table of contents
Alsa
list audio inputs
arecord -l
select alsa input
alsamixer
record from alsa input
arecord -t wav > [name].wav
record 5 seconds
arecord -d 5 > [name].wav
record as ogg
arecord -f cd -t raw | oggenc - -r -o [name].ogg
requires install ogg support
sudo apt-get install vorbis-tools
mute
amixer -D pulse sset Master mute
unmute
amixer -D pulse sset Master unmute
increase volume
amixer -D pulse sset Master 5%+
decrease volume
amixer -D pulse sset Master 5%-
increase volume and unmute
amixer -D pulse sset Master unmute 5%+
Pulse Audio
show commands available in pacmd
pacmd --help
info on PulseAudio deamon
pactl info
list loaded modules
pacmd info
list available devices
aplay -l
aplay -L
pacmd list-cards
changing the default output
pacmd list-sinks | grep 'index:\|name:'
pacmd set-default-sink [index]
To list existing streams
pactl list sink-inputs
pactl list source-outputs
moving application to another sink (sound output) while it is running
pacmd move-sink-input [id to move] [destination sink id]
paprefs makes it possible to output sound to 2 outputs at once
sudo apt-get install paprefs
Further reading
https://wiki.archlinux.org/index.php/PulseAudio