You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can set preferences on a per-experiment basis. For example, if you would like to use a specific :doc:`audio library</api/sound>`, but don't want to touch your user settings in general, you can import preferences and set the option :ref:`audioLib<generalSettings>` accordingly::
from psychopy import prefs
prefs.general['audioLib'] = ['pyo']
prefs.hardware['audioLib'] = ['pyo']
from psychopy import sound
**!!IMPORTANT!!** You must import the sound module **AFTER** setting the preferences. To check that you are getting what you want (don't do this in your actual experiment)::