psychopy.org | Reference | Downloads | Github

Unable to use microphone or sound recordings

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): MacOS High Sierra, versión 10.13.3
PsychoPy version (e.g. 1.84.x): 1.90.dev1
Standard Standalone? (y/n) y
**What are you trying to achieve?: build an experiment to show words that subject has to repeat while i tape the response

**What did you try to make it work?: Installed the recommended libraries and psychopy and did a basic experiment to first try to record the response using the microphone.
Installed:
Python itself:python.org/download/ (version 3.x is not supported yet )
wxPython:wxpython.org/download.php
pyo audio: PYO – AJAX SOUND STUDIO
pip install pyobjc-core pyobjc-framework-Quartz
pip install seaborn # nice graphing
pip install psychopy_ext # common workflows made easy
pip install python-bidi # for left-right language formatting

some settings:

**What specifically went wrong when you tried that?: this is the error message

Any help would be great! thanks…

Hi, your message refers to installing lots of dependencies into your own Python installation, but the error message shows that you are running the standalone distribution of PsychoPy (which contains its own Python and dependencies, and has no interaction with any other Python installation you might have).

Can you confirm how you run/launch PsychoPy?

Hi,

We run SychoPy standalone version, with out Python dependencies, but we have the problem as you can see in output message box, about error 20 audio.dylib.

Then, we installed dependencies of audio: «pyo audio http://ajaxsoundstudio.com/software/pyo/»
We can’t run experiments yet.

Thanks for your help.

Output:

OSError: cannot load library /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/_sounddevice_data/libportaudio.dylib: dlopen(/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/_sounddevice_data/libportaudio.dylib, 2): no suitable image found. Did find:
/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/site-packages.zip/_sounddevice_data/libportaudio.dylib: stat() failed with errno=20

I should mention, that as Gustavo was saying, we first ran psychpy standalone version, and it did not work. Then we thought we had to install the other dependencies to explore if there were missing components after the initial instalation but still nothing. We have tried in both, windows and mac systems. I wonder if we are missing a fundamental step somewhere.