
Adding Sounds and Headphone Checks to Your Study
To play a sound in Labvanced, add an Audio object to a screen, choose your sound file and decide when it should play. If your results depend on what participants hear, you can also add a headphone check: a short listening task that screens whether participants are using headphones.
What do you want to do?
| You want to... | Use |
|---|---|
| Play a sound, such as a spoken word or a tone | The Audio object |
| Screen online participants for headphone use | A ready-made headphone check |
Add a sound
Have your sound file ready, such as an MP3. Then open a task in the editor and select a frame (a screen in your study).
- In the toolbar, open
Mediaand clickAudio. - In the
Audio Setupwindow, checkAutoplay audio on frame startto play the sound when the screen appears. - To move participants on when the sound finishes, check
Jump to next frame when audio ends. Otherwise, uncheck it. - Keep
Assign audio file(s) from file browserselected and clickNext. - Choose your file.
Labvanced creates events for the options you checked. An event is a rule that makes something happen at a certain moment. To open and change these events later, use the Events panel in the task editor.
Example 1: sound that plays on each trial. In the
HP Trialstask of the Huggins Pitch Headphone Screen, each trial's sound plays without a click.
Start: aFrame Start Triggerplays the sound after a 500 ms delay
Move on: aMedia Object Triggerset toPlaybackEndedusesJump ToNext Frame
Example 2: sound that repeats like a metronome. In the Repeated Sound Demo, a
Frame Start Triggerstarts a loop, to simulate a metronome.
Loop:Execute every ... ms, set to1000(once per second)
Each repetition: play the sound, then add 1 tocount
Stop:Stop Condition (While Not):count==5
Adjust the sound
Select the Audio object to see its settings in the Object Properties panel.
Volume: a number from0(silent) to1. Participants' own device volume also affects how loud it is.Show Media Controls:gives participants a play button and progress bar. It's on by default, so uncheck it if they shouldn't pause or replay the sound.
Load sounds before the study starts
Preloading downloads your media files before the study begins, so sounds are ready when needed. It's on by default. To check, open Settings → Controls → Experiment Startup and make sure Pre-load All Experiment Files is checked.
Add a headphone check
Online, you can't see how participants are listening. Laptop speakers and headphones can sound quite different. A headphone check asks questions that are easier to answer correctly when wearing headphones.
Labvanced doesn't switch this on with a single setting. Instead, you copy three ready-made tasks into your study. A task is one part of a study, made up of one or more screens.
- Open the Huggins Pitch Headphone Screen and click
Import. This saves a copy of the whole study to your account. See Importing Templates for help. - Open the copy and read its
READ BEFORE USINGtask. It explains how to credit the creators and change the check. - Open your own study, go to the
Study Designtab and clickImport Task. - Under
Select Study:, choose the copy. Hold Ctrl (Cmd on a Mac) and clickHP Instructions,HP TrialsandHP Evaluation. Leave outREAD BEFORE USING, which isn't meant for participants. ClickOk. - In the
Import Task: Variable Usagewindow, selectNew (copy) alland clickOk. - The imported task names start with
imported_. In the block (a group of tasks) that should run the check, clickAdd Taskto add each one. Drag them above your sound tasks, in the order listed in step 4. Keep all three in the same block with a fixed task order, so theRetestbutton can return participants to the trials. - Run your study with and without headphones. Also fail the check once on purpose, click
Retest, answer correctly and confirm that you pass.
Example 3: headphone check for online participants. The Huggins Pitch Headphone Screen has 6 trials. In each one, participants pick which of three noises contains a hidden tone.
Pass: 3 or fewer errors. Participants clickContinueto move to the next task.
Fail: 4 or more errors. ARetestbutton appears.
Removal: after the third failed check,Reject/End Sessionruns with a 2000 ms delay
Removed participants stay on the last screen. Their session isn't marked as completed, and participants from crowdsourcing services get no completion code.
You can make the pass rule stricter
The imported tasks are yours to edit. Open HP Evaluation and, on its first frame, edit the decide outcome event. Change the number in both conditions on errorCount, which counts wrong answers. For example, to allow only 1 error, set pass to <= 1 and fail to > 1.
Another published option is the AP Woods Headphone Screening Test. To compare the methods, read Headphone Checks in Research.
Good to know
- Ask for headphones early. Tell participants before they start that they'll need headphones and a quiet place.
- Test on your participants' devices. Some devices and browsers, including those on iPhones and iPads, restrict sounds from playing automatically. Test your study on the devices and browsers they'll use.
- Recording is separate. The
Audioobject plays sound. To capture participants' voices, see audio recordings.
FAQ
How do I use a different sound on each trial?
Audio object, click the folder icon in Object Properties, select your files and click Assign. Under the trial options, Create as many trials as files selected. gives each file its own trial, and replaces the existing trials in the selected condition. See how to generate trials by adding stimuli. To arrange screens before and after the sound, see the Trial Timeline. How do I assign files to conditions?
Assign window can also assign files to conditions or factor levels. See the assignment options. How do I randomize the order?
Random order by default. To check, find Randomizations in the left panel of the task editor, click Settings and look at Trial Order. To limit how many trials from one condition appear in a row, use Limit Successive Repetitions under Condition Order. See randomization settings. How do I know which sound and condition a participant got?
Trial_Id and Condition_Id for each trial, and also records factors that have two or more levels. To save the file name too, add an event with a Frame Start Trigger and a Set / Record Variable Action. Save the value to a new variable, such as sound_file. For the value, choose Object Property, then your Audio object and Filename.