22 May '13 - 19:16 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: detecting amplitude threshold on the RECORDCHAN  (Read 6091 times)
Sam
Guest
« on: 24 Aug '03 - 20:57 »
Reply with quoteQuote

Hi,

Any ideas about this? I want to have the Microphone monitor the room constantly, and if somebody starts talking (same thing as the volume breaks a threshold), start recording for 5 seconds and save to file. I know I should be recording all the time, but what is the most reasonable way of checking if the threshold has been broken, to start saving the buffer for 5 seconds?

Sam
Logged
sam
Guest
« Reply #1 on: 26 Aug '03 - 17:49 »
Reply with quoteQuote

No suggestions anyone?...
Logged
Creadig
Posts: 71


« Reply #2 on: 26 Aug '03 - 19:24 »
Reply with quoteQuote

Try detecting silence on the recorded buf.
when the silence is broken.. start record for 5 secs.

i hope this help.
Wink
Logged
bigjim
Posts: 232


« Reply #3 on: 26 Aug '03 - 23:41 »
Reply with quoteQuote

Just have a loop that uses Bass_ChannelGetLevel and wait for the level to jump above a certain level. I have some code somewhere for a voice activated call recorder if you want it. Grin
Logged
Creadig
Posts: 71


« Reply #4 on: 27 Aug '03 - 03:59 »
Reply with quoteQuote


I have some code somewhere for a voice activated call recorder if you want it.


Interesting!.. code in vb6?.. can you send it to my e-mail?
< creadig@hotmail.com >

Thanks BigJim.  Grin
Logged
bigjim
Posts: 232


« Reply #5 on: 27 Aug '03 - 12:31 »
Reply with quoteQuote

Sorry its in delphi 4
Logged
Sam
Guest
« Reply #6 on: 27 Aug '03 - 19:49 »
Reply with quoteQuote

Thanks guys,

So I took the average channel level of each mic (left and rught) during silence, and set the threshold to that. Its not really accurate, but it seems to do the trick. Sometimes there is no sound and it starts, and sometimes there is speech and it doesn't. But the majority of the time it works.

Thanks,
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines