linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] detect silence


From: محيي الدين
Subject: Re: [Linphone-developers] detect silence
Date: Sat, 12 Mar 2016 09:34:07 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

I had that problem in a project in my college years for a sound recognition, but I did not have a way to detect when I should start recording

What I did is that I recorded many times in a very quiet room and got the numeric amplitudes, then put it on OpenOffice Calc, and computed the mean and the standard deviation, so that I could decide which level I have to put as condition to start or stop recording..

This works even if you don't have any API but getting the amplitude of the sound from the microphone


I hope this would help :)


على 11 مار, 2016 ‫م 08:03، كتب Cynthia He:
We are writing an application that will record audio for all calls.  Since most of the time, users are just listening in for announcement of events, we need to be able to only record when someone is talking and stop recording when nobody is talking.

I know that I can get play volumes and if it is below certain level, it may be considered as silence.  The problem is how to detect volume has changed enough to start or stop recording.  I didn’t find a callback for that purpose.  Or do we just have to run a thread that checks for volume continuously (obviously not very efficient)?

I appreciate any help!

CynHe


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

--

reply via email to

[Prev in Thread] Current Thread [Next in Thread]