OS : Win10
PsychoPy version: 3.0.0
Hello everyone,
I am relatively knew to working with Psychopy and I have encountered the following problem when trying to programme my experiment:
I want to create a loop using various audio files (.wav). I have put the file names of my audio files into an excel file and named the column “audio”. Then I’ve entered the variable name “$audio” into the sound field of the sound component and clicked the option “set every repeat”.
However, if I want to start the experiment, I get the following error:
Running: C:\Users\Public\Documents\audio_test\audio_test_4_lastrun.py
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py”, line 349, in setSound
blockSize=self.blockSize)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py”, line 90, in getStream
blockSize=blockSize)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py”, line 129, in _getStream
.format(label, list(self.keys())[0], sys.platform)
psychopy.exceptions.SoundFormatError: Tried to create audio stream 22050_2_128 but 44100_2_128 already exists and win32 doesn’t support multiple portaudio streams
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\Public\Documents\audio_test\audio_test_4_lastrun.py”, line 112, in
sound_1.setSound(audio)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py”, line 357, in setSound
raise SoundFormatError(err)
psychopy.exceptions.SoundFormatError: Tried to create audio stream 22050_2_128 but 44100_2_128 already exists and win32 doesn’t support multiple portaudio streams
Does anyone know how I can fix this problem? I’d be really grateful if someone could help me with this!
Thanks, Sabrina