Companion
Functions
Stitches multiple separately recorded segments into a single contiguous AudioRecording.
Vararg overload of concat for ergonomic call sites.
Creates an empty recording placeholder.
Creates an AudioRecording from an AudioFlow by collecting all chunks. This suspends until the flow completes.
Decodes an audio file from raw bytes (e.g. Compose resources via Res.readBytes(), network responses, or any in-memory representation).
Decodes an audio file from raw bytes using an explicit container format.
Creates an AudioRecording from multiple byte array chunks. Each chunk is copied to prevent external mutation.
Reads an audio file from the filesystem. The format is auto-detected from magic bytes with extension fallback.
Creates an AudioRecording from raw PCM byte data (no container headers). The data is copied to prevent external mutation.
Decodes an audio file from a Source stream (e.g. Android ContentResolver, platform input streams, or any kotlinx.io.Source).
Decodes an audio file from a Source using an explicit container format.