The AudioPreview model allows the local participant to test different capture modes and voice fonts before a conference. The model is supported only in SDK 3.10 and later.
▸ captureMode: AudioCaptureMode
Sets an audio capture mode for the audio preview.
▸ status: AudioPreviewStatus
Gets the recording status.
status: AudioPreviewStatus-> Unit)? = null)
A callback called by the SDK when the recording status changes.
|AudioPreviewStatus||The recording status.|
This method is replaced with the stop method in SDK 3.10.1.
Cancels recording or playing an audio sample.
Plays back the recorded audio sample. To test how your audio sounds while using different capture modes and voice fonts, set the setCaptureMode method to a preferred setting before using the method.
|boolean||A boolean that indicates wether the SDK should play the recorded audio in a loop.|
Starts recording an audio sample if no recording is in progress. This method requires the Android AudioRecord permission. Calling this method without the permission granted results in the promise to reject the call.
|Int||The preferred recording duration that ranges from 0 to 5, in seconds.|
Releases the internal memory and restarts the audio session configuration.
Stops recording or playing an audio sample. This method is available in SDK 3.10.1 and later.
Updated 4 months ago