| Reference | Downloads | Github

Audio Problems- AttributeError: 'str' has no attribute 'setSound'


I’m currently making an experiment on builder and I having issues the sound files not working. The basic premise of the experiment is there’s a first audio that plays, then a picture stimuli appears simultaneously with another audio file, if the participant doesn’t respond, then a third audio plays.This process repeats itself in a loop with different audio and picture stimuli. I don’t understand why ‘str’ and ‘setSound’ show up in the error message. And I made sure that the file names were the same across psychopy, excel sheet, and in the file folder.


Hi @jc2019, this suggests that somewhere in your task, audio1 is being overwritten by a string, perhaps from your conditions file. If you have any columns in your conditions files named audio1, you should change it something that does not match.

1 Like