How to resolve the Attribute Error for PsychPortAudio?

OS (Win10):
PsychoPy version PsychoPy 2023.2.3:
Standard Standalone
What are you trying to achieve?:
I am trying to play some audio clips in my experiment. I am not using any microphone.

What did you try to make it work?:

I converted the audio files from mp3 to WAV files, I also changed the audio properties (all my audio are not 44.1 KhW) as suggested in other forum threads but no solution thus far.

What specifically went wrong when you tried that?:
Besides changing the format to 44.1 KhW I keep receiving the following error : PsychPortAudio(ā€˜Closeā€™, self.handle)
AttributeError: ā€˜_MasterStreamā€™ object has no attribute ā€˜handleā€™ and I honestly donā€™t know what to do about it.

Apologies if I have left any key information out (Iā€™m learning Psychopy at this very moment) and thank you for your support!

Does this help?

Hello there! It does seem like a similar problem to mine, but I canā€™t seem to find a common solution from the other thread as I am not currently using a microphone and already changed my audio to DVD quality (WAV - 44.1 Kwh)

Apparently some speakers only work with 48kHz, so please test that in minimal experiment.

1 Like

It did indeed work! Thank you so much!