stopRecording

abstract fun stopRecording(): Result<RecordedMedia>

Stops recording and saves the recording to the file provided by startAudioRecording.

Return

A Unit wrapped inside a Result if recording has been stopped successfully. Returns a ChatError wrapped inside Result if the action had failed.