Hi,
some background information:incoming rtp stream has to be stored in wav file only in case of voice activity can be observed on the incoming stream.
Tue Apr 8 06:38:38 EDT 2008
Hi Markus,
Assuming you are talking about microphone silence detection,
currently there is no callback/trigger mechanism for silence detection.
However, you have some alternatives to do this:
1. Monitor the rx_level of sound port (normally slot 0) in the
conference periodically.
See pjmedia_conf_get_signal_level() API.
2. Implement a pjmedia port that utilize existing silence detector to
do callback when such conditions are reached (e.g: start silence, start talking).
Then, this port can be stacked to any port you would like to monitor
(in this case, sound port). The port connection will be about:
conference bridge <--> silencedet port <--> sound port.
We will be glad if somebody would implement the second alternative and
share the implementation to us.
Regards,
Nanang
regarding to "Alternative 2": have been already implemented any enhancements since 2008?
On Fri, Jun 16, 2017 at 12:06 PM, Gabor K <gabor58k@xxxxxxxxx> wrote:
GaborThank you.Can you give me some pointers or some short advises?I have found the pjmedia_silence_det_detect() API but I can not find any example code which shows how to use it.Hi,I am wondering how to use/integrate Voice Activity Detector of pj's codecs, e.g.: G.711.
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org