If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 10 Pro
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?: YES
What are you trying to achieve?: I am trying to record voice responses using the microphone component and the ptb audio library.
What did you try to make it work?:
I have tried using different sampling rates, audio libaries (e.g., ptb, pyo, system, etc.), to debug the microphone component in the script of my experiment, but I do not manage to make it work as when the mic component is called (e.g., mic.stop() ) the experiment crashes and shows the: “Cannot stop a stream that has not been started”).
My experiment was built in v 1.83.04 and it works just fine in that version, recording audio and everything. Can the issues be due to retro-compatibility in the newest version? I am working in a neuroimaging experimental PC that has not access to the internet (thus, not access to older versions) for security reasons.
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
3527.9022 INFO Loaded monitor calibration from [‘2020_01_29 00:44’]
3527.9426 INFO C:\Program Files\PsychoPy\pythonw.exe -m psychopy.scripts.psyexpCompile C:\Users\experimental user\Desktop\TAOT\exp_1dB\taot_exp_builtin_lab_bk.psyexp -o C:\Users\experimental user\Desktop\TAOT\exp_1dB\taot_exp_builtin_lab_bk_lastrun.py -v 1.90.0
Hello from the pygame community. Contribute - pygame wiki
Traceback (most recent call last):
File “C:\Users\experimental user\Desktop\TAOT\exp_1dB\taot_exp_builtin_lab_bk_lastrun.py”, line 496, in
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\sound\microphone.py”, line 803, in stop
“Cannot stop a stream that has not been started.”)
psychopy.sound.exceptions.AudioStreamError: Cannot stop a stream that has not been started.