[Asterisk-Users] Voice Dtect

Matt Riddell matt.riddell at sineapps.com
Sun Jun 5 18:50:16 MST 2005


Anton Krall wrote:
> Guys, is there any way to detect voice when calling a zap channel? For
> example, if you want to send out or playback a recorded message, you need to
> wait for somebody to actually answer the phone before playing starts..
> Anyway to detect this?

There is  app_amd.so which will be discussed at Astricon Europe

( http://www.astricon.com/europe )

by François Lambert from Aheeva (see 
http://www.astricon.net/europe/tutorials.shtml for details)

There is also an app in * codebase called BackGroundDetect:

   -= Info about application 'BackgroundDetect' =-

[Synopsis]
Background a file with talk detect

[Description]
   BackgroundDetect(filename[|sil[|min|[max]]]):  Plays  back  a  given
filename, waiting for interruption from a given digit (the digit must
start the beginning of a valid extension, or it will be ignored).
During the playback of the file, audio is monitored in the receive
direction, and if a period of non-silence which is greater than 'min' ms
yet less than 'max' ms is followed by silence for at least 'sil' ms then
the audio playback is aborted and processing jumps to the 'talk' 
extension if available.  If unspecified, sil, min, and max default to 
1000, 100, and infinity respectively.  Returns -1 on hangup, and 0 on 
successful playback completion with no exit conditions.

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)



More information about the asterisk-users mailing list