Skip to content

Instantly share code, notes, and snippets.

@steevhise
Created November 10, 2024 14:08
Show Gist options
  • Save steevhise/ba930f81e346ffa5d5f97021bae46339 to your computer and use it in GitHub Desktop.
Save steevhise/ba930f81e346ffa5d5f97021bae46339 to your computer and use it in GitHub Desktop.
saving how to deal with sound devices on CLI
# get the list of audio devices
pactl list
pactl set-defaut-sink <device name> # set the output device
pactl list sources|sinks # list the outputs or inputs
pactl load-sample <sound file>
pactl list-samples # get list of loaded sound samples
pactl play-sample <sample name>
# pipe from input to output
arecord | aplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment