| Reference | Downloads | Github

Microphone doesn't work

I tried to run the ‘’ file in the psychopy demo, this happened:

Traceback (most recent call last):
  File "/Users/experimenter/Documents/test_code/", line 34, in <module>
  File "/Applications/", line 1146, in switchOn
AttributeError: 'NoneType' object has no attribute 'setSamplingRate'
1 Like

Same error here. Can anyone help? I need to gain my PhD

OK, that’s fixed in this commit to the repository:

You can download the file psychopy/ from there and replace it in your own, and there are two small changes to that you need to make (that you can also see there).

At some point I’ll try to make the mic a little easier - Jeremy used to look after that but he’s been busy with other things lately.