python - Psychopy Pyo Custom Audio -
i having difficulty playing custom audio file through psychopy. getting message saying:
attributeerror: no audio api found. try installing pyo 0.6.8+, or pygame 1.8+
i tried install pyo api still not work or install properly.
please advise. maybe installing pyo incorrectly or not loading successfully. running on osx.
here code:
import psychopy global audiolib, audiodriver, sound, init psychopy import prefs prefs.general['audiolib'] = ['pyo'] prefs.general['audiodriver']=['coreaudio'] psychopy import sound sound = sound.sound('testaudio.wav')
are using psychopy standalone 1.83.x? , version of osx? these important.
if using standalone think problem 64bit binary of pyo we're distributing there. i've struggled compiled in way works on other versions of osx own install.
if above problem workaround described on mailing list psychopy here: https://groups.google.com/forum/#!topic/psychopy-users/jmkhjknnclm
if not you'll need tell how install psychopy , dependencies
Comments
Post a Comment