OS: MacOS Monterey (12.5.1)
PsychoPy version: v2022.2.5
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?: I am trying to save per-trial audio recordings, but when I go to process the audio in Praat, the .wav’s are empty
What did you try to make it work?: I first followed the advice here, so my rate is set to 16kHz and I’m defaulting to pyo as my audio library. I also followed the advice here and deleted pygame from my list of audio libraries and moved pyo to the top.
What specifically went wrong when you tried that?:
Here’s my error messages from running a minimal experiment (a text promt to talk, keyboard input to end the trial, and the microphone for recording audio)
1628.9685 INFO Loaded monitor calibration from [‘2023_02_26 23:34’]
2023-03-10 21:24:15.505 python[2229:31977] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/_3/sws90zt124zfvby14f1cn8h40000gn/T/org.opensciencetools.psychopy.savedState
PTB-INFO: Using modified PortAudio V19.7.0-devel, revision unknown
||PaMacCore (AUHAL)|| Error on line 520: err=‘‘what’’, msg=Unspecified Audio Hardware Error
||PaMacCore (AUHAL)|| Error on line 520: err=‘‘what’’, msg=Unspecified Audio Hardware Error
PTB-INFO: New audio device 0 with handle 0 opened as PortAudio stream:
PTB-INFO: For 1 channels Capture: Audio subsystem is Core Audio, Audio device name is MacBook Air Microphone
PTB-INFO: Real samplerate 16000.000000 Hz. Input latency 95.000000 msecs, Output latency 0.000000 msecs.
0.8405 WARNING pyo audio lib was requested but not loaded: ImportError(“dlopen(/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/pyo/_pyo.cpython-38-darwin.so, 0x0002): Library not loaded: ‘@ loader_path/libportaudio.2.dylib’\n Referenced from: ‘/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/pyo/_pyo.cpython-38-darwin.so’\n Reason: tried: ‘/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/pyo/libportaudio.2.dylib’ (no such file), ‘/usr/local/lib/libportaudio.2.dylib’ (no such file), ‘/usr/lib/libportaudio.2.dylib’ (no such file)”)
0.8722 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘pyo’, ‘sounddevice’, ‘PTB’] (in that order).
1.1085 WARNING Monitor specification not found. Creating a temporary one…
ioHub Server Process Completed With Code: 0
################# Experiment ended with exit code 0 [pid:2229] #################