psychopy.org | Reference | Downloads | Github

AttributeError: pyo server not created Error in microphone.AudioCapture()

sound

#1

I am trying to open the microphone to record using it.

from psychopy import microphone
microphone.switchOn()
ac = microphone.AudioCapture()

But I get the error:

Traceback (most recent call last):
  File "/Users/ok/anaconda3/envs/myEnv/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-30-75b2a25e63ac>", line 1, in <module>
    ac = microphone.AudioCapture()
  File "/Users/ok/anaconda3/envs/myEnv/lib/python3.5/site-packages/psychopy/microphone.py", line 170, in __init__
    raise AttributeError('pyo server not created')
AttributeError: pyo server not created

Any idea why?


#2

Hi, perhaps you would like to follow a similar issue on GitHub:


#3

@dvbridges Hi, I am using coding (not builder) and MAC (not windows) so I an not really sure if any solution there can be applied to my case…


#4

Thats ok, there is no solution as of yet, we are trying to gain information about why people are seeing this error, considering we cannot recreate it here in our lab.


#5

@dvbridges Sure , please let me know if there is any additional information you would like to to provide


#6

If you would not mind, please go to the Github link and provide the details of you sound card, mic and drivers being used.


#7

@dvbridges I used all defaults, didn’t change anything from the store mac…


#8

Hi,

@oren, did you test your mic input with another software?


#9

@belangeo No, How would you suggest me to do so?


#10

@oren audacity is a free and cross-platform audio editor. You can monitor and record from the microphone with it.

https://www.audacityteam.org/download/