I’m currently working on programming an experiment with PsychoPy and for one part of the experiment, I want to present six different sounds randomly selected in a loop. I already programmed the visual loop where the stimuli the words in the excel sheet are converted into a list and shuffled and subsequently only the first six elements are presented. I was working on a similar solution for presenting the sounds:
In the excel file, I added the pathways of the sound files (which are located in a folder called “audios”). Then the program reads the excel file row by row and puts the pathways into an array which is then shuffled and accessed later to be presented. However, this method does not really work (I’m not sure if it is just a bug or if the general logic does not work).
Is there a better way to randomly play a subset of sound files that are stored in a folder?
I really appreciate any help, tips or question!
Thank you very much in advance.