# Control audio recording using function probe

**URL:** <https://www.ruby-forum.com/t/control-audio-recording-using-function-probe/240676>\
**Category:** GNU Radio\
**Created:** [April 25, 2014, 6:31am UTC](https://www.ruby-forum.com/t/control-audio-recording-using-function-probe/240676 "2014-04-25T06:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 25, 2014, 6:31am UTC](https://www.ruby-forum.com/t/control-audio-recording-using-function-probe/240676/1 "2014-04-25T06:31:23Z")

</div>

Hi, have an issue with controlling audio recording with function probe,  
that measures signal level. A variable ‘muted’ is set to 0 or 1  
depending  
on current rf power threshold, and depending on muted state recording  
starting and stops. I suppose i would get continous file when level is  
above the threshold, but in fact script generatates files every second  
(file name contains current time), because filename variable updates  
continously and wav sink opens new files or rewrites old ones. So glad  
to  
hear your suggestions to solve this task.
