diff --git a/psychopy/hardware/microphone.py b/psychopy/hardware/microphone.py index f892845874..366dacddd9 100644 --- a/psychopy/hardware/microphone.py +++ b/psychopy/hardware/microphone.py @@ -953,9 +953,10 @@ def getRecording(self): """ if self.isStarted: - raise AudioStreamError( - "Cannot get audio clip, recording was in progress. Be sure to " - "call `Microphone.stop` first.") + logging.warn( + "Cannot get audio clip while recording is in progress, so stopping recording now." + ) + self.stop() return self._recording.getSegment() # full recording