Generate an .eaf using the segment sampling script
Last updated
Last updated
There are three main parts to this:
Running on the audio file on . Instructions .
Running functions that create an eaf with random intervals and then add high-volubility intervals:
Calculate the age in months.
Calculate the audio duration in minutes. Use soxi -D xxx.wav
to get the duration in seconds, then divide by 60 and round down. (if you get "command not found", install sox
with Hombrew (brew install sox
) or conda (conda install -c conda-forge sox
).
In python/iPython (substitute id/age/length for your recording):
set the recording_id, age, and duration:
Run the following code:
Check and log:
Check *.eaf and selected_regions.csv and confirm that there are 15 random, 15 high-volubility, and 5 high-volubility-extra regions.
If all looks good, go into processed_participants.csv and fill in the columns for your files, including the on- and offset times from selected_regions.csv.