Skip to content

Function: setAudioSessionPortOverride() ​

ts
function setAudioSessionPortOverride(enabled): void;

Defined in: Calls.ts:273

Sets the audio session port override.

Use this to route audio to the speaker instead of the earpiece, or vice versa.

Parameters ​

ParameterTypeDescription
enabledbooleanIf true, routes audio to the speaker. If false, uses the default route (typically earpiece for voice calls).

Returns ​

void