It seems like I am having the similar problem as others when I tried to record an audio response via builder. The first error code is that: portaudio error in Pa_Initialize: Internal PortAudio error. And this seems to be the problem between the computer config and the Pyo config. I found that they have different sampling rates, but I can’t change it…
In addition to that, I have another error as:
"portaudio error in Pa_Initialize: Internal PortAudio error
Traceback (most recent call last):
File “C:\Users\RA\Desktop\HungShao QP1\test2_lastrun.py”, line 142, in
sound_file = sound.Sound(‘A’, secs=-1)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py”, line 289, in init
self.sampleRate = pyoSndServer.getSamplingRate()
AttributeError: ‘NoneType’ object has no attribute ‘getSamplingRate’
I have tried to specify the sampling rate to 48000 in the coder view but still received the same error.
I was wondering if anyone could point a direction for me to solve this problem. And is there a stable way to record an audio in Psychopy? This would save a lot of for the data analysis if Psychopy can save each audio response for me.
Thank you so much and apologize for such a long post.