All of lore.kernel.org
 help / color / mirror / Atom feed
* Command line utility to detect sound
@ 2009-08-12 16:34 NickRob
  2009-08-12 17:16 ` 
  2009-08-13  4:29 ` Nicholas Robinson
  0 siblings, 2 replies; 3+ messages in thread
From: NickRob @ 2009-08-12 16:34 UTC (permalink / raw)
  To: linux-sound


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.

Thanks for any help you can give me.

Nick
-- 
View this message in context: http://www.nabble.com/Command-line-utility-to-detect-sound-tp24940295p24940295.html
Sent from the linux-sound mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Command line utility to detect sound
  2009-08-12 16:34 Command line utility to detect sound NickRob
@ 2009-08-12 17:16 ` 
  2009-08-13  4:29 ` Nicholas Robinson
  1 sibling, 0 replies; 3+ messages in thread
From:  @ 2009-08-12 17:16 UTC (permalink / raw)
  To: linux-sound

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Command line utility to detect sound
  2009-08-12 16:34 Command line utility to detect sound NickRob
  2009-08-12 17:16 ` 
@ 2009-08-13  4:29 ` Nicholas Robinson
  1 sibling, 0 replies; 3+ messages in thread
From: Nicholas Robinson @ 2009-08-13  4:29 UTC (permalink / raw)
  To: linux-sound

Hi Jörn

Thank you very much for your reply. I will follow up your suggestions.

Best Wishes

Nick

On Wed, 2009-08-12 at 19:16 +0200, Jörn Nettingsmeier wrote:
> 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
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-13  4:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-12 16:34 Command line utility to detect sound NickRob
2009-08-12 17:16 ` 
2009-08-13  4:29 ` Nicholas Robinson

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.