Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Help with "audio stream" error

Hi everyone, I had coded my experiment and ran it through one backend: PyGame/Legacy. When I started trying to run this task on my research lab's computer it wouldn't run properly. The IT guy told me I needed to use a different backend.

I've switched to PsychoPy, but I keep getting this error during one section of the tasks, which involves different "sound" responses depending on participant input: "psychopy.exceptions.SoundFormatError: Tried to create audio stream 24000_2_256 but 44100_2_256 already exists and win32 doesn't support multiple portaudio streams".

I'm feeling a bit confused because my task was running perfectly fine with the other backend. I'm unsure about the differences in backends (and why this specific computer can't run PyGame), and don't know how to resolve this audio issue.

Comments

  • Hi @GeorgiaW ,

    You probably have multiple sound files with different sampling rates. PsychoPy, unlike PyGame/ Legacy, expects all sound files to have the same sampling rate, which is why you receive this error message. It's also possible that one of the sound files is a synth, which can even be a calibration beep in an eye-tracking experiment. In any case, make sure that all your sound files are 44.1 KHz and you should be good!

    — Sebastiaan

Sign In or Register to comment.