OS : Win11 Pro
PsychoPy version: 2024.1.4
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?:: Record audio with microphone component as a mono .wav file
What did you try to make it work?::
I have tried to select in the microphone component the type of recording to mono.
What specifically went wrong when you tried that?:
I am currently using an Earthworks QTC30 microphone, which is connected to a Steinberg UR22 USB audio interface, and then connected via USB to my computer. The microphone is plugged in on input line 1 of the audio interface. This results in only being able to record one channel. However, this audio interface by default shows up in windows as only recording in stereo.
In something such as Audacity, I can record as mono easily, and that is exactly what I want. Using Psychopy, if I attempt to start the experiment when set to mono recordings I get the following error:
self._samples[self._offset:self._lastSample, :] = audioData
ValueError: could not broadcast input array from shape (881,2) into shape (881,1).
This clearly indicates some problem in forcing this mono recording. If I alternatively select to record in stereo I can run the experiment with no issues, but the resulting recording is a stereo file that only plays in one side. This can be fixed afterwards by converting the recordings to mono, although I would rather just have them be mono from the get go. Any ideas on how to solve this problem?
Kind regards,
Bruno.