# disableSpeaker

abstract fun disableSpeaker()

Disables speaker mode.

Method resets any previously selected communication device disabling automatic audio routing functionality if it was previously enabled.

Note that by calling this the OS picks next communication device automatically. Use automatic audio routing or your custom logic if you want to override this behavior. Eg. by invoking `enableAutomaticAudioRouting(AudioRoutingConfig(UseSpeakerphone.SPEAKERPHONE_FALSE, true))` SDK will select either built-in earpiece or bluetooth device if available.