FileOutput

data class FileOutput(val path: String, val encoder: AudioEncoder = AudioEncoder.forPath(path), val bitRate: Int)(source)

Constructors

Link copied to clipboard
constructor(path: String, encoder: AudioEncoder = AudioEncoder.forPath(path), bitRate: Int)

Properties

Link copied to clipboard

Bits per second for compressed encoders; ignored for AudioEncoder.Wav. On iOS it is lowered to the highest rate the encoder supports for the sample rate and channel count (about 50 kbit/s for 16 kHz mono).

Link copied to clipboard

Picked from the extension by default: .wav is AudioEncoder.Wav, anything else AAC.

Link copied to clipboard

Absolute path. An existing file is overwritten. AudioCapture.recordingPath gives one in the app's private storage.