AudioController

interface AudioController

Controls different audio settings. This object is only valid while the connected SinchClient is started. As soon as the SinchClient is stopped, it is invalidated and must not be used.

See also

Types

Link copied to clipboard
data class AudioRoutingConfig(val useSpeakerphoneState: AudioController.UseSpeakerphone, val isBluetoothAudioManaged: Boolean)

Automatic routing configuration data.

Functions

Link copied to clipboard

Disables automatic audio routing (AAR). When AAR is disabled use AudioController.enableSpeaker to toggle between speakerphone and earpiece.

Link copied to clipboard
abstract fun disableSpeaker()

Disables speaker mode.

Link copied to clipboard

Enables automatic audio routing between earpiece, speakerphone, wired headset and bluetooth audio devices. Priorities are following:

Link copied to clipboard
abstract fun enableSpeaker()

Enables speaker mode.

Link copied to clipboard
abstract fun mute()

Mutes audio input.

Link copied to clipboard
abstract fun setLocalAudioListener(listener: LocalAudioListener?)

Sets a listener for the local audio listener.

Link copied to clipboard
abstract fun unmute()

Unmutes audio input.

Properties

Link copied to clipboard

Indicates whether the automatic audio routing is enabled.

Link copied to clipboard
abstract val isMute: Boolean

Indicates whether the microphone is muted.

Link copied to clipboard
abstract val isSpeakerOn: Boolean

Indicates whether the speaker is enabled.