Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am working with an Arduino and am trying to get it to respond to sound when it is played on my computer. I'm communicating with it over a serial port.

I need to know if there are any audio/sound monitoring tools that will work from the command line so I could write a shell script to do everything. Something similar to airmon-ng for wireless (Although not exactly like this as this monitors external stats. I'm looking for something that can do this internally).

I'm not sure if such a tool exists because I couldn't seem to find the right combination of keywords to find it on google. This is for an audio-out listener. I think similar tools exist for line-in.

share|improve this question

closed as unclear what you're asking by Anthon, Thomas Nyman, jasonwryan, peterph, Ramesh Sep 25 '14 at 14:52

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

What do you mean by "monitoring" sound with a command? How can that be similar to setting a WiFi device to monitor mode? –  Volker Siegel Sep 25 '14 at 6:24
If you would monitor sound using some program called from a shell on the PC, why do you need an Arduino in the first place? –  Anthon Sep 25 '14 at 6:49
@VolkerSiegel I just wanted to snoop on the audio out. I believe that can be done on Ubuntu using a gstreamer plugin, but I might be wrong. I would like to monitor the audio out "channel" and have my program respond to the frequency/amplitude. –  Kasisnu Sep 25 '14 at 7:02
So you want to record what you are playing, basically? But without actually recording it from the output, but intercepting somewhere before? Can you edit the question to clarify? –  Volker Siegel Sep 25 '14 at 7:09
@Anthon The arduino was what I eventually wanted to communicate with. It's not an important detail. I realize that now. I was hoping to communicate with an LED strip and have it respond in a generic manner to all output coming out of my computer. At work now, but will edit this question later today. –  Kasisnu Sep 25 '14 at 7:14