Tokenized Audio Stimulus¶
A tokenized-audio stimulus is similar to the tokenized text stimulus, except that here a token is an audio clip instead of a text segment. A tokenized-audio stimulus can be particularly useful for creating a self-paced listening study. When the participant presses the designated key for advancing in the stimulus, the currently playing audio clip will be cut off, and the next audio clip (if it exists) will start playing.
Required Properties¶
type¶
content¶
- Definition: A list consisting of the file names of the list of audio clips to be played
- Possible values: Must be the file names of the audio files (e.g.
["a.mp3", "b.mp3", "c.mp3"]) - Format support is dependent on the participant's browser. See Tips tab for further information.
- mp3 tends to work well across our supported browsers and all major operating systems (Windows, Mac, and Linux). However, there is a chance that older Linux systems with older browsers will not support this format.
- There are many ways to convert your audio stimuli to the desired format. For audio transcoding, check out fre:ac.
Optional Properties¶
barrier¶
- Definition: If set to
true, then all subsequent stimuli and responses will not be displayed until this tokenized audio stimulus displays all its audio clips. - Possible values:
trueorfalse - Default:
true - See also: delay
In trials using the above stimulus code, other stimuli and responses will be displayed at the same time as the tokenized audio.
In trials using the above stimulus code, the tokenized audio will play before other stimuli and responses are displayed. This code is equivalent to code where the barrier property is not specified.
delay¶
hint¶
- Definition: Whether to display an instruction note that tells participants to press the key_advance key to play the next audio clip.
- Possible values:
trueorfalse - Default:
true - Instruction reads Press the "[key]" key to play the sounds. where [key] is the key specified in
key_advance. - Setting this to
falsecan be useful if participants are given sufficient practice in prior parts of the study.
key_advance¶
- Definition: The key that a participant should press to play each audio clip in the
contentlist when self_paced istrue. - Possible values: Any alphanumeric character, and one of the following keys:
"ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "ShiftLeft", "ShiftRight", "ControlLeft", "ControlRight", "AltLeft", "AltRight" - Default:
" "(i.e., the space bar)
last_token_skippable¶
- Definition: Whether or not participants can press the key_advance key to skip the very last audio clip in the list
- Possible values:
trueorfalse - Default:
false - Setting this to
truewill potentially allow participants to speed through the entire stimulus without listening to anything (i.e., holding down the designated key throughout the process).
parent¶
- Definition: If specified, then the properties of the specified stimulus will be inherited by this stimulus, unless a property of the same name is defined in this stimulus.
- Possible values: The name of another defined stimulus
progress_bar¶
- Definition: Whether to display a progress bar to visually indicate how many audio files are left to be played
- Possible values:
trueorfalse - Default:
true - Setting this to
falsewill result in no visual indication of the progress of the current tokenized-audio stimulus.
Sample 3 out of 6 audio clips:
"k": 3 randomly selects 3 of the 6 clips to present. Increasing k plays more clips; setting it to 0 disables sampling and plays all clips.
Sample 5 clips from a list of 4 clips with replacement:
"k": 5 would normally lead to an error. But here we set "replacement": true to allow the same clip to be played more than once, which is necessary when k exceeds the number of available clips.
Sample 4 clips with replacement and allow the same clip to play consecutively:
"adjacent_duplicates": true additionally allows the same clip to play back-to-back. When false, consecutive duplicates are prevented.
self_paced¶
- Definition: Whether participant interaction (in the form of a key-press specified by key_advance) is required to trigger the playing of each audio clip. If
true, then the playing of audio clips is triggered by participant interaction, and reaction time for each audio clip is recorded. The recorded reaction time reflects how long participants spend listening to an audio clip. A reaction time shorter than the duration of an audio clip means that participants skipped to the next clip before the current one ended. - Possible values:
true,false - Default:
true
Note
At this time, only true is supported. Setting this to false will be ignored.
See Also¶
Audio Stimulus, Tokenized Text Stimulus, Tokenized Image Stimulus