> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # updateMicrophone > updateMicrophone method for the RoomSessionScreenShare class. ### updateMicrophone ▸ **updateMicrophone**(`constraints`): `Promise` Replaces the current microphone stream with the one coming from a different device. #### Parameters **`constraints`** `MediaTrackConstraints` — required Specify the constraints that the device should satisfy. See [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints). --- #### Returns `Promise` #### Example ```javascript await screenShareObj.updateMicrophone({ deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=", }); ``` > updateMicrophone method for the RoomSessionScreenShare class.