@@ -50,3 +50,11 @@ See [recording file names](#recording-file-names) above
### Add a start/stop recording button
Recording can be started/stopped with `mic.start()` and `mic.stop()` (see the [PsychoJS microphone documentation](https://psychopy.github.io/psychojs/Microphone.html)). Note that as implemented, recordings are only saved at the end of each routine, so `mic.stop()` won't automatically save the recording.
## A note on audio quality
The code in the Begin Experiment tab of the `mic_code` component in the `trial` routine sets the sampling rate to 44.1kHz, and this can be changed. Note that there are no checks for the quality of the participant's microphone, so the resulting audio may not be of high enough quality for fine phonetic analysis.
Also note that the `maxRecordingSize` value set in the `mic_code` defaults to 2400kb (24mb). This should be enough for most short recordings, but you may want to play with this value if you expect longer recordings.