start

suspend fun start()

Starts recording audio.

If you want to temporarily stop recording but keep the captured audio, use pause/resume instead — calling start again after stop would discard the previous recording, so Kodio refuses to do this silently. Either:

  • call reset first to explicitly throw away the previous recording, or

  • stitch multiple completed recordings together with AudioRecording.concat.

Throws

if microphone access is denied

if invoked while the recorder is in the AudioRecordingSession.State.Stopped state without an intervening reset.