pliers.stimuli.TranscribedAudioCompoundStim¶
- class pliers.stimuli.TranscribedAudioCompoundStim(audio, text)[source]¶
Bases:
CompoundStim
An AudioStim with an associated text transcription.
- Parameters
filename (str) – The path to the audio clip.
audio (AudioStim) – An AudioStim containing the audio content.
text (ComplexTextStim) – A ComplexTextStim containing the transcribed text (and associated timing information).
- get_stim(type_, return_all=False)¶
Returns component elements of the specified type.
- Parameters
- Returns
If return_all is True, a list of matching elements (or an empty list if no elements match). If return_all is False, returns the first matching Stim, or None if no elements match.
- get_types()¶
Return tuple of types of all available Stims.
- has_types(types, all_=True)¶
Check whether the current component list matches all Stim types in the types argument.