fromAudioFlow

suspend fun fromAudioFlow(audioFlow: AudioFlow, duration: Duration? = null): AudioRecording

Creates an AudioRecording from an AudioFlow by collecting all chunks. This suspends until the flow completes.

Note: The collected chunks are used directly since they come from the flow and are not shared elsewhere.