MicrophoneManagerManual
Similar to MicrophoneManager but samples are not read automatically. The owner must manually call read(...) as often as samples are needed.
Functions
Link copied to clipboard
open fun createInternalMicrophone(config: AudioPlaybackCaptureConfiguration, sampleRate: Int, isStereo: Boolean): Boolean
open fun createInternalMicrophone(config: AudioPlaybackCaptureConfiguration, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Create audio record with params and AudioPlaybackCaptureConfig used for capturing internal audio Notice that you should granted RECORD_AUDIO before calling this!
Link copied to clipboard
Create audio record
open fun createMicrophone(sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Create audio record with params and default audio source
open fun createMicrophone(audioSource: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Create audio record with params and selected audio source
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Call when you need mic samples.
Link copied to clipboard
Link copied to clipboard