A background audio response allows researchers to record any sounds captured by participants’ microphone during a trial, without any interactions required from participants. This is a background response, meaning that it is invisible to participants (unless the volume_visualizer
property is to true
).
This feature works most reliably in Chrome and Firefox.
Please clearly communicate to your participants that they are being recorded on relevant trials.
type
must be specified as "background_audio"
.{
"type": "background_audio"
}
1.5
)0
{
"type": "background_audio",
"duration": 1.5
}
In this code, the background audio response stops collecting data after 1500 milliseconds.
true
, the audio response will record the time (in milliseconds) at which the participant first starts speaking (or making a loud noise).true
or false
false
onset_sensitivity
{
"type": "background_audio",
"onset_detection": true
}
1
and 99
, with 1
being the least sensitive and 99
being the most sensitive.50
onset_detection
{
"type": "background_audio",
"onset_detection": true,
"onset_sensitivity": 60
}
Given a response named "bgaud1"
defined as follows:
{
"type": "background_audio",
"onset_detection": true,
"volume_visualizer": true,
"duration": 1.3
}
We can define a child response "bgaud2"
that has its own duration
property but is identical otherwise.
{
"type": "background_audio",
"parent": "bgaud1",
"duration": 2.5
}
Available since August 15, 2022
true
or false
false
true
, it automatically sets onset_detection to true
as well and cannot be changed.{
"type": "audio",
"stop_on_silence": true
}
Available since August 15, 2022
true
or false
false
true
, it automatically sets onset_detection to true
as well and cannot be changed.{
"type": "audio",
"trim_leading_silence": true
}
true
or false
false
(i.e., not displaying the visualizer)false
, it is highly recommended that you inform participants that they are being recorded{
"type": "background_audio",
"volume_visualizer": true
}
onset_detection
is turned on; empty otherwise