"Cannot stop a stream that has not been started.") psychopy.sound.exceptions.AudioStreamError: Cannot stop a stream that has not been started

If this template helps then use it. If not then just delete and start from scratch.

Win10:
PsychoPy version (e.g. ): 2021.2.3
Standard Standalone? (y/n) If not then what?:y
**What are you trying to achieve?:**I want to record the subjects’ recordings normally and keep them

**What did you try to make it work?:**I tried to modify the script, but no recording file was saved.
**I referred to this link:**Issues with microphone recordings: AudioStreamError: Cannot stop a stream that has not been started

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

My question is: how can the micphone work properly and save the recording file