PsychoPy version 1.84.x
Standard Standalone? Yes
What are you trying to achieve?:
I am trying play sentence-length recordings (.wav files) from an Excel file that also has information about correct answer (binary choice), word order, language, etc.
What did you try to make it work?:
I have the recorded stimuli in my “Experiment” folder (where everything is being pulled from). I have tried placing these items on the desktop, unsorted in the “Experiment” folder, and in an “AudioFiles” subfolder within “Experiments”. Depending on where the sound files were located, I updated an Excel spreadsheet with their location (e.g. Experiment\AudioFiles\luxWOi1.wav ) under the column heading “LuxStim”.
I then inserted a routine into the Builder labeled LuxAud with a sound component and a keyboard component. To get the sound I want, I have the “sound” set to “$LuxStim” and chose “set every repeat”. I then added a loop around this routine with loopType = random, nReps $ = 1, and conditions = LuxAudSentences.xlsx (my Excel spreadsheet with my 4 parameters, including the “LuxStim” condition).
What specifically went wrong?
When I run the experiment, the text/keyboard components leading up to the sound portion work fine (and a made-up experiment with only these also works (even when the text is pulled from an Excel spreadsheet)). When it gets to the part that should play audio, the experiment crashes and yields the following:
pyo version 0.8.0 (uses single precision)
Traceback (most recent call last):
File “C:\Users\Hoffman…_lastrun.py”, line 504, in
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\sound.py”, line 166, in setSound
raise ValueError, msg = value
ValueError: setSound: could not find a sound file named Experiment\luxWOp2.wav
Sorry if this is a noob-ish question. Any insights would be greatly appreciated.