Skip to main content

Speaker Settings

Switch Between Earpiece and Speaker

To toggle audio output devices (speaker or earpiece) during calls, use the enableSpeaker method of RCCallEngine. Pass true to enable speaker mode or false for earpiece mode. Default is false (earpiece mode).

  • Sample code:

    engine?.enableSpeaker(false);
warning

This method only takes effect after receiving the RCCallEngine.onConnect() callback.