Available Audio Modes
| Mode | Description |
|---|---|
SPEAKER | Routes audio through the device loudspeaker |
EARPIECE | Routes audio through the phone earpiece (for private calls) |
BLUETOOTH | Routes audio through a connected Bluetooth device |
HEADPHONES | Routes audio through wired headphones |
Set Initial Audio Mode
Configure the audio mode when joining a session:- Kotlin
- Java
Change Audio Mode During Call
Switch audio modes dynamically during an active call:- Kotlin
- Java
Listen for Audio Mode Changes
Monitor audio mode changes usingMediaEventsListener:
- Kotlin
- Java
Hide Audio Mode Button
To prevent users from changing the audio mode, hide the button in the call UI:- Kotlin
- Java
The SDK automatically detects connected audio devices. If Bluetooth or wired headphones are connected, they become available as audio mode options.