To: linux-sound@vger.kernel.org
Subject: Re: Command line utility to detect sound
Date: Wed, 12 Aug 2009 17:16:03 +0000 [thread overview]
Message-ID: <4A82F8D3.5040009@folkwang-hochschule.de> (raw)
In-Reply-To: <24940295.post@talk.nabble.com>
NickRob wrote:
> Hi
>
> I would like to find a command line utility that will detect sound above a
> certain volume and do something like terminate with a status or issue a
> signal that can be trapped by another process. I haven't been able to find
> anything, but using the words sound and detection together in google leads
> inexorably to sound card detection!
>
> Alternatively, which library/app would be the best one to start with if I
> need to adapt something? I'm an experienced programmer, but not with sound.
check out the linux audio developers' mailing list. for your particular
application, grab the swh ladspa plugin set, check out the compressors.
they contain code for envelope followers, which will compute the energy
of a sound signal using the root-mean-square method. rip it out (it's
gpl) and add some C glue around it to tie into your shell scripts or
whatever it is you want to do.
best,
jörn
next prev parent reply other threads:[~2009-08-12 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 16:34 Command line utility to detect sound NickRob
2009-08-12 17:16 ` [this message]
2009-08-13 4:29 ` Nicholas Robinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A82F8D3.5040009@folkwang-hochschule.de \
--to=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.