creamy-fish-75944
05/16/2025, 8:48 AMtall-airline-16756
05/16/2025, 8:48 AMtall-airline-16756
05/16/2025, 8:49 AMcreamy-fish-75944
05/16/2025, 8:49 AMtall-airline-16756
05/16/2025, 8:50 AMsetMicrophoneEnabled
method on the localParticipant
object. This method creates and publishes a microphone audio track if it hasn't been done already, and unmutes the microphone. Here's an example:
room.localParticipant.setMicrophoneEnabled(true);
This will enable the microphone and publish it to a new audio track. The method uses the default capture and publish options from the Room object, so no additional parameters are needed for basic functionality.
Sources: Publishing tracks | LiveKit Docs | setMicrophoneEnabled