Speaker Calibration¶
Speaker calibration sets the attenuation values used when etho loads playlist
stimuli. The goal is that playlist intensity values correspond to the sound intensity
unit used by the rig.
Hardware Setup¶
Place the microphone at the animal position.
Record the distance and geometry relative to the speaker.
Connect the microphone amplifier output to a DAQ analog input.
Use the same playback output path and amplifier settings used during experiments.
Record the microphone calibration file, date, and gain settings.
Run Calibration Stimuli¶
Use a calibration playlist that covers the frequency and intensity range needed for experiments. During the run, save:
raw microphone recording
protocol file
playlist file
current
ethoconfig.ymlmicrophone calibration metadata
amplifier gain and other hardware settings.
rig name and date
Analyze And Update¶
Analyze the recorded response to calculate attenuation factors for the
frequencies used in playlists. You would use the microphone calibration data to convert analog input voltage to sound intensity units.
Store the resulting mapping in
%USERPROFILE%\ethoconfig\ethoconfig.yml under ATTENUATION.
Example:
ATTENUATION:
-1: 1
100: 0.82
150: 0.77
200: 0.74
After updating attenuation, run the calibration playlist and confirm the measured output matches the target within the tolerance used by the rig. Keep enough metadata with the calibration data that another operator can repeat or audit the calibration later.