prepareInternalAudio

open fun prepareInternalAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean

Call this method before use @startStream for streaming internal audio only.

Parameters

bitrate

AAC in kb.

sampleRate

of audio in hz. Can be 8000, 16000, 22500, 32000, 44100.

isStereo

true if you want Stereo audio (2 audio channels), false if you want Mono audio (1 audio channel).

See also


open fun prepareInternalAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean): Boolean