AudioRecordingSession

Represents an active recording session.

Inheritors

Types

Link copied to clipboard
sealed class State

Represents the state of a recording session.

Properties

Link copied to clipboard
abstract val audioFlow: StateFlow<AudioFlow?>

A flow that emits audio data chunks as ByteArrays while recording.

Link copied to clipboard
abstract val state: StateFlow<AudioRecordingSession.State>

A flow that emits the current state of the recording.

Functions

Link copied to clipboard
open suspend fun pause()

Pauses an active recording.

Link copied to clipboard
abstract fun reset()
Link copied to clipboard
open suspend fun resume()

Resumes a paused recording.

Link copied to clipboard
abstract suspend fun start()

Starts the recording. Sets the state to RECORDING.

Link copied to clipboard
abstract fun stop()

Stops the current recording. Sets the state to STOPPED.