createTemporary

fun createTemporary(config: SonixRecorderConfig = SonixRecorderConfig.VOICE, audioSession: AudioMode = AudioMode.RECORDING): SonixRecorder

Create a recorder with automatic temp file path.

Useful for recording sessions where you don't need a specific output path (e.g., real-time pitch detection, live analysis).

Return

Ready-to-use SonixRecorder with temp output path

Parameters

config

Recorder configuration (default: VOICE)

audioSession

Audio session mode - configures system audio automatically (default: RECORDING)