audioProcessorSource

abstract fun audioProcessorSource(value: Source<AudioProcessor>): Session.Builder

Uses the provided value to attach the Session audio processing pipeline to once built. The provided Source is normally attached to when audio input is required to either mutate it by applying audio effects (lenses voice changer) or/and process it to detect loudness, spectrum information etc. Providing the Source is optional as it is possible to connect input to Session.processor manually, once Session is built and running, if required.

NOTE: If no Source is provided, Session will attempt to use a default implementation backed by device's microphone input as long as android.Manifest.permission.RECORD_AUDIO permission is granted.