pyeeg.io
.AlignedSpeech.samples_from_onset
- AlignedSpeech.samples_from_onset(onset_segment, srate)
Load the corresponding indices of samples as found in EEG for the given speech segment. Will use duration of current segment and the onset time of the speech segment from the EEG experiment.
- Parameters:
onset_segment (float) – Onset time of the current speech segment (story) in second.
srate (float) – Sampling rate of EEG
- Returns:
to_keep – Indices to keep in the EEG that matches the speech segment of this class instance.
- Return type:
array-like