R/processing_audio_functions.R
join_sound_classification.RdThis function reads a sound classification file with column
mic.wav_location_0 (potentially pointing to a different study path than the
trial_results) and joins it. It then parses the sound_cat column and parses
the classification to add the following one-hot-encoded columns: any_voice,
undiff_voice, laughter, shriek, talk_to_threat, exclamation,
talk_to_self.
join_sound_classification(df, sound_fn)The trial results tibble with added columns
Sound classification file must have the following columns: mic.wav_location_0 and sound_cat.
Further columns are added if they contain the strings transcription, comment or sound
The expected classification key for sound_cat is:
0. No sound
Non-differentiable (vowels, growls, long hissing)
Laughing
Shrieking
Speech apparently directed at the threat
Exclamation of surprise, including expletives
Talking to oneself
Talking to the experimenter
Breathing sounds (to be used as filter: only classified when none of category 1-7 applies)
Ambient sounds (to be used as filter: only classified when none of category 1-7 applies)