kvision / pl.treksoft.kvision.cordova / MediaCapture / captureAudio

captureAudio

suspend fun captureAudio(limit: Number = 1, duration: Number? = null): Result<List<MediaFile>, CaptureException>

Capture audio file(s).

Parameters

limit - The maximum number of audio clips the user can capture in a single capture operation.

duration - The maximum duration of an audio clip, in seconds.