I am running an experiment with a recording element for participants. They are required to recall a narrative in as much detail as possible, then press the space bar once they are complete. The problem I am having is that the recordings max out at 9 min 25 seconds. I am wondering if anyone can help me figure out why or if there is a way I should adapt my coding to have the microphone run for an undefined time. My current code is provided below.
# Start Audio Recording
mic = Microphone(sampleRateHz=44100, streamBufferSecs=1200, maxRecordingSize=200000)
recallClock.reset()
mic.start()
mic.poll()
event.waitKeys(keyList=['space'])
mic.stop()
audioClip = mic.getRecording()
audioClip.save(outputFolderName + os.sep + 'Practice' + os.sep + outputRecallFileName + '_continued.wav')
mic.clear()
mic.close()
win.flip()
core.wait(1.0)