createRecordingSession

open suspend override fun createRecordingSession(requestedDevice: AudioDevice.Input? = null, requestedFormat: AudioFormat? = null): AudioRecordingSession

Creates a recording session with the specified input device and format. The session does not start recording until AudioRecordingSession.start is called.

Return

A RecordingSession object.

Parameters

requestedDevice

The requested device to record from (not all platforms support this).

requestedFormat

The desired audio format. If the platform cannot honor the exact format, it will negotiate a supported one. Pass null to use the platform default.