# MicrophoneManagerManual

open class MicrophoneManagerManual : MicrophoneManager, GetFrame

Similar to MicrophoneManager but samples are not read automatically. The owner must manually call read(...) as often as samples are needed.

## Constructors

MicrophoneManagerManual
Link copied to clipboard
constructor()

## Properties

audioFormat
Link copied to clipboard
val audioFormat: Int = 2
channel
Link copied to clipboard
open val channel: Int
internalVolume
Link copied to clipboard
open var internalVolume: Float
microphoneVolume
Link copied to clipboard
open var microphoneVolume: Float
sampleRate
Link copied to clipboard
open var sampleRate: Int

## Functions

createInternalMicrophone
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!
createMicrophone
Link copied to clipboard
open fun createMicrophone()
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
createMixMicrophone
Link copied to clipboard
open fun createMixMicrophone(audioSource: Int, config: AudioPlaybackCaptureConfiguration, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
getGetFrame
Link copied to clipboard
open fun getGetFrame(): GetFrame
getInputFrame
Link copied to clipboard
open fun getInputFrame(): Frame
isCreated
Link copied to clipboard
open fun isCreated(): Boolean
isMuted
Link copied to clipboard
open fun isMuted(): Boolean
isRunning
Link copied to clipboard
open fun isRunning(): Boolean
mute
Link copied to clipboard
open fun mute()
read
Link copied to clipboard
open fun read(directBuffer: ByteBuffer, numBytes: Int): Int
Call when you need mic samples.
setCustomAudioEffect
Link copied to clipboard
open fun setCustomAudioEffect(customAudioEffect: CustomAudioEffect)
setPreferredDevice
Link copied to clipboard
@RequiresApi(api = Build.VERSION_CODES.M)
open fun setPreferredDevice(deviceInfo: AudioDeviceInfo): Boolean
setVolume
Link copied to clipboard
open fun setVolume(audioUtils: Float)
start
Link copied to clipboard
open fun start()
Start record and get data
stop
Link copied to clipboard
open fun stop()
Stop and release microphone
unMute
Link copied to clipboard
open fun unMute()