Get the duration of audio stimuli without playing it?

OS (e.g. Win10): MacOS version 12.0.1
PsychoPy version (e.g. 1.84.x): v2022.2.5
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
I am currently working with Builder for presenting audio stimuli. Three audio stimuli are presented sequentially with the presentation sequence as: audio1 --inter stimuli interval 1 (ISI 1) – audio2 – ISI 2 – audio3 – ISI 3. I would like to set the ISI 1, 2, 3 based on the duration of three audio stimuli because I would like to make the sum of duration of all these six routines as a fixed value. So I would like to know if there is a method that I can get the duration of all three audio stimuli without actually playing them?

Hi, perhaps you can do something like this? (7.9 KB)

Hi thanks so much for the demo!

My original plan was not including the duration of each audio file in the condition file and get the duration of each audio file online by psychopy, but now it seems that this is uneasy to do and I just need to prepare the duration of each audio file in the condition file.

Thanks again!