General task of an application is to accumulate sound samples, received from the microphone, and saving the “useful” samples on a drive. “Usefulness” of a sample is determined by the classifier function. The function returns a boolean result, collected from the operation of a certain set of frequency filters, which are applied to the target audio stream; the function also considers the context of its work, namely, the duration of useful data stream from the moment of identification that the data stream is useful. Thus the useful data stream starts to buffer and will be stored until the moment of negative usefulness classification. A necessary and sufficient condition for saving the sample on a drive is overcoming the limit for the minimum possible time for any sample.
Classifier function will be presented additionally.