I’m building an experiment in which participants (verbally) name pictures presented onscreen, and their responses are detected by a nearby microphone. I have a code component which saves each response as a separate audio file:
vpvk = vk.OnsetVoiceKey(
file_out = english_word + ‘.wav’)
**note the pictures are pulled from an excel file, and ‘english_word’ is just the label given to each picture.
My problem is that I have multiple repetitions of each picture within my loop, meaning that when a picture is repeated, the previous audio file for that picture is overridden. Is there a way to specify the repetition/trial number for the output file, so that a separate file is generated for each iteration of each picture? Any help would be appreciated!