psychopy.org | Reference | Downloads | Github

Wav file stretched/compressed/distorted on windows

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) yes

sound component reading from wav file, duration reduced pitch increased, as if e.g., my audio file is 22khz, and psychopy reads it assuming it’s 44khz. i have also tried files that is 44khz. all these file sound file from groove music (windows default audio player). pure tone sound component sounds fine

so under
setting >> audio >> audio library
choose pyo or pygame solves the problem

when choose ptb sound compressed

when chose sounddevice get error

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