i6_core.features.filterbank

i6_core.features.filterbank.FilterbankJob(crp, filterbank_options=None, **kwargs)
Parameters:
Returns:

Feature extraction job with filterbank flow

Return type:

FeatureExtractionJob

i6_core.features.filterbank.filter_width_from_channels(channels, warping_function='mel', f_max=8000, f_min=0)
Per default we use FilterBank::stretchToCover, it computes it number of filters:

number_of_filters = (maximumFrequency_ - minimumFrequency_ - filterWidth_) / spacing_ + 1));

Parameters:
  • channels (int) – Number of channels of the filterbank

  • warping_function (str) – Warping function used by the filterbank. [‘mel’, ‘bark’]

  • f_max (float) – Filters are placed only below this frequency in Hz. The physical maximum is half of the audio sample rate, but lower values make possibly more sense.

  • f_min (float) – Filters are placed only over this frequency in Hz

Returns:

filter-width

:rtype float

i6_core.features.filterbank.filterbank_flow(warping_function='mel', filter_width=70, normalize=True, normalization_options=None, without_samples=False, samples_options=None, fft_options=None, apply_log=False, add_epsilon=False, add_features_output=False)
Parameters:
  • warping_function (str) – “mel” or “bark”

  • filter_width (int) – filter width in Hz. Please use filter_width_from_channels() to get N filters.

  • normalize (bool) – add a final signal-normalization node

  • normalization_options (dict[str, Any]|None) – option dict for signal-normalization flow node

  • without_samples (bool) – creates the flow network without a sample flow, but expects “samples” as input

  • samples_options (dict[str, Any]|None) – parameter dict for samples_flow()

  • fft_options (dict[str, Any]|None) – parameter dict for fft_flow()

  • apply_log (bool) – adds a logarithm before normalization

  • add_epsilon (bool) – if a logarithm should be applied, add a small epsilon to prohibit zeros

  • add_features_output (bool) – Add the output port “features”. This should be set to True, default is False to not break existing hash.

Returns:

filterbank flow network

Return type:

rasr.FlowNetwork