I am having difficulty playing a custom audio file through Psychopy. I am getting a message saying:
AttributeError: No audio API found. Try installing pyo 0.6.8+, or pygame 1.8+
I tried to install the pyo API but still could not get it to work or install properly.
Please advise. Maybe I am installing pyo incorrectly or not loading it successfully. I am running on OSX.
Here is my code:
import psychopy
global audioLib, audioDriver, Sound, init
from psychopy import prefs
prefs.general['audioLib'] = ['pyo']
prefs.general['audioDriver']=['coreaudio']
from psychopy import sound
sound = sound.Sound('TestAudio.wav')