setMicrophoneActive

inline suspend fun MediaSession.setMicrophoneActive(active: Boolean)(source)

The setMicrophoneActive() method of the MediaSession interface is used to indicate to the user agent whether the user's microphone is considered to be currently muted.

MDN Reference