psychopy.org | Reference | Downloads | Github

The error messsage 'NoneType' object has no attribute 'set_volume' shows up


#1

OS: Win10 64bit
PsychoPy version: 1.84.2
Standard Standalone: Y

I set up a psychopy experiement including sound components on the Builder interface,
however, only to fail to running it. I installed pygame, uninstalled pyo, and changed the order of
the audio library preference from pyo to pygame, but it doesn’t still work. The error message follows as:

Following is my psychopy experiment file:
test.psyexp (19.5 KB)

What should I do to make it work? Thank you in advance!


#2

Are you trying to read mp3 files (it seems to in your test.psyexp file)? I don’t know about pygame but pyo does not support mp3 files (wav, aiff, flac, ogg, sd2, caf).

Olivier


#3

At first I used mp3 files, but changed the filename extention from mp3 to wav after realizing mp3 format is not supported. Thanks, Olivier.


#4

Oh, converting the mp3 files to wav files using an audio converter, NOT just changing their file name extentions, worked! Thank you for your advice, Olivier!