Audio Input For Calls
By default a call uses the platform's default microphone. On the Web you choose another one with the SDK; on Android and iOS the operating system routes the microphone, so you use its APIs instead.
The SDK records from whichever device Android routes the call's audio to. Input and output move together: selecting a Bluetooth or wired headset as the call's audio endpoint switches both its microphone and its speaker.
With Core-Telecom, the CallControlScope that addCall gives you lists the endpoints in availableEndpoints and switches with requestEndpointChange:
kt
// Inside the CallControlScope
launch { availableEndpoints.collect { endpoints -> showRoutePicker(endpoints) } }
// When the user picks one, e.g. their Bluetooth headset
launch { requestEndpointChange(picked) }The system call UI offers the same choice to the user, which is usually all you need. Without Telecom, use AudioManager.setCommunicationDevice (API 31+).