def dBrms_detector(one_channel, fs, **kwargs):
    '\n    Calculates the dB rms profile of the input audio and \n    selects regions which arae above  the profile. \n    \n    Parameters\n    ----------\n    one_channel\n    fs\n    dbrms_threshold: float, optional\n        Defaults to  -50 dB rms\n    dbrms_window: float, optional\n        The window which is used to calculate the dB rms profile\n        in seconds.  Defaults to 0.001 seconds.\n    \n    Returns\n    -------\n    detections : list with tuples\n        Each tuple corresponds to a candidate signal region\n    '
    if (one_channel.ndim > 1):
        raise IndexError(f'Input audio must be flattened, and have only 1 dimension.                          Current audio has {one_channel.ndim} dimensions')
    dbrms_window = kwargs.get('dbrms_window', 0.001)
    dbrms_threshold = kwargs.get('dbrms_threshold', (- 50))
    window_samples = int((fs * dbrms_window))
    dBrms_profile = dB(moving_rms(one_channel, window_size=window_samples))
    (labelled, num_regions) = ndimage.label((dBrms_profile > dbrms_threshold))
    if (num_regions == 0):
        print(f'No regions above threshold: {dbrms_threshold} dBrms found in this channel!')
    regions_above = ndimage.find_objects(labelled.flatten())
    regions_above_timestamps = [get_start_stop_times(each, fs) for each in regions_above]
    return regions_above_timestamps
Calculates the dB rms profile of the input audio and 
selects regions which arae above  the profile. 

Parameters
----------
one_channel
fs
dbrms_threshold: float, optional
    Defaults to  -50 dB rms
dbrms_window: float, optional
    The window which is used to calculate the dB rms profile
    in seconds.  Defaults to 0.001 seconds.

Returns
-------
detections : list with tuples
    Each tuple corresponds to a candidate signal region
def dBrms_detector(one_channel, fs, **kwargs):
    '\n    Calculates the dB rms profile of the input audio and \n    selects regions which arae above  the profile. \n    \n    Parameters\n    ----------\n    one_channel\n    fs\n    dbrms_threshold: float, optional\n        Defaults to  -50 dB rms\n    dbrms_window: float, optional\n        The window which is used to calculate the dB rms profile\n        in seconds.  Defaults to 0.001 seconds.\n    \n    Returns\n    -------\n    detections : list with tuples\n        Each tuple corresponds to a candidate signal region\n    '
    if (one_channel.ndim > 1):
        raise IndexError(f'Input audio must be flattened, and have only 1 dimension.                          Current audio has {one_channel.ndim} dimensions')
    dbrms_window = kwargs.get('dbrms_window', 0.001)
    dbrms_threshold = kwargs.get('dbrms_threshold', (- 50))
    window_samples = int((fs * dbrms_window))
    dBrms_profile = dB(moving_rms(one_channel, window_size=window_samples))
    (labelled, num_regions) = ndimage.label((dBrms_profile > dbrms_threshold))
    if (num_regions == 0):
        print(f'No regions above threshold: {dbrms_threshold} dBrms found in this channel!')
    regions_above = ndimage.find_objects(labelled.flatten())
    regions_above_timestamps = [get_start_stop_times(each, fs) for each in regions_above]
    return regions_above_timestamps