pyeeg.io.AlignedSpeech.get_envelope

AlignedSpeech.get_envelope(cutoff=20, method='rectify')

Extract envelope from sound associated with this instance and add to it as a feature.

Parameters:
  • cutoff (float) – Cutoff frequency (Hz) of the low-pass filter applied to the envelope (Default: 20).

  • method (str) – Method used to extract the envelope, e.g. ‘rectify’. See pyeeg.utils.signal_envelope() for the list of possible methods (Default: ‘rectify’).

Returns:

env – The envelope signal, resampled at the sampling rate of this instance (self.srate), and added as an ‘envelope’ feature.

Return type:

ndarray

Raises:

AttributeError – If the audio path has not been set on this instance.