My PsychoPy project heavily involves playing audio streams. Using the “audio” component, I was able to only play one specific audio that is part of a trisyllabic word (e.g; TU.wav). However, my goal is to play and sync all the audios with an excel file -containing all the arrangements of the word syllables individually (e.g; TUPIRO, etc).
I attempted in creating separate audio components for each syllable. However, I believe this is incorrect as the flow will be independent from the excel file. The data shows were only in response to the participants rating response, but does not tally with the audio played during the trial.
Hi @Afrina, if you have 3 syllables to play on each trial, you will want to have three audio components that play consecutively, then in your conditions file you can have three columns holding your syllable .wavs , each column corresponding to a particular audio component, e.g., 1st, 2nd and 3rd.
However, another problem arises -after one trial plays successfully, the following trials have no sound but the rating responses and the excel output is correct (seems as though the program is running well but the sound files are having problems).
This is the error message we got as follows;
Traceback (most recent call last):
File “sounddevice.pyc”, line 733, in callback_ptr
File “sounddevice.pyc”, line 2508, in _wrap_callback
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_sounddevice.py”, line 206, in callback
self.sounds.remove(thisSound)
ValueError: list.remove(x): x not in list
That’s a known problem that will be fixed in version 3.0.0b12. Here’s a workaround:
Open /Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_sounddevice.pywith administrator rights
Go to line 206 (or search for self.sounds.remove(thisSound))
Remove .sounds so that it reads self.remove(thisSound)
Save the file
Restart PsychoPy.
Edit: You’re lucky: PsychoPy 3.0.0b12 was just released, so you can just install the update instead of following the steps above. I’ll leave them there in case you want to stay with Beta 11, though.