Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using PulseAudio on my system, and I followed the instructions for adding a monitor device as per the PulseAudio wiki. The monitor device itself works and registers/functions properly in apps like Audacity, but I'm not able to get the device to show itself through any of the command line tools. aplay -L returns roughly the same list as Audacity, but is conveniently missing the monitor device.

My end goal is to parse the output in a Java app and eventually pass it to FFmpeg. I'm able to tell the device exists through the Java audio APIs as 2 generic "Capture source ports" show up, but it doesn't provide a name for the device, and the goal is for it to be user-selectable in a somewhat friendly manner.

Are there any ways to get the monitor device to show up in either a command line app or through a Java API / library?

Thanks in advance!

share|improve this question
up vote 1 down vote accepted

Use the pacmd list-sources or pactl list commands to show PulseAudio devices. To show only names you can grep on it's output. This is an example from PulseAudio FAQ

$ LANG=C pactl list | grep -A2 'Source #' | grep 'Name: ' | cut -d" " -f2

With additional grep on ".monitor" you can get only monitor devices.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.