psychopy.org | Reference | Downloads | Github

Cannot access even on the Demos voiceCapture, please help!

OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 3.1.2
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?: Use microphone to record sound.

What did you try to make it work?: Try Demos on voiceCapture AND word-naming

What specifically went wrong when you tried that?:
File “C:\Users\Documents\PsychoPy3 Demos\voiceCapture\voiceCapture_lastrun.py”, line 255, in
mic.record(sec=2, block=False) # start the recording thread
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\microphone.py”, line 398, in record
self.filename = self._record(sec, filename=filename, block=block)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\microphone.py”, line 249, in _record
self.recorder.run(self.savedFile, self.duration, **self.options)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\microphone.py”, line 117, in run
inputter = pyo.Input(chnl=chnl, mul=1)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyo\lib\generators.py”, line 420, in init
pyoArgsAssert(self, “iOO”, chnl, mul, add)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\pyo\lib_core.py”, line 503, in pyoArgsAssert
raise PyoArgumentTypeError(err % (i, name, expected, argtype))
pyo.lib._core.PyoArgumentTypeError: bad argument at position 0 to “Input” (integer expected, got <class ‘str’>)

1 Like

This one is fixed in the repository and will be done in 3.1.3 (imminent)