AndroidAudioSource

MediaRecorder.AudioSource. Decides which processing the device applies before you get the audio.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Tuned for recognition: no processing aimed at human listeners. Best for speech-to-text.

Link copied to clipboard

Tuned for calls: echo cancellation and gain control where the device provides them.

Link copied to clipboard

As raw as the device allows. Devices that do not support it behave like Default without any error; AudioManager.getProperty(PROPERTY_SUPPORT_AUDIO_SOURCE_UNPROCESSED) tells which.

Link copied to clipboard

A low-latency path meant for live performance (karaoke, monitoring), not a quality profile. API 29+; falls back to Mic below that.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.