setLocalAudio(enabled, options?)
Prebuilt
Custom
Requires join() or startCamera() to be called first.
Parameters
true to unmute the microphone, false to mute it.When
true, the mic track is fully discarded when muting — releasing the hardware and hiding browser/OS mic-in-use indicators.By default, setLocalAudio(false) mutes without discarding the track so the hardware stays warm. This lets the user unmute instantly without the first few words getting clipped while the mic reinitializes. This is strongly recommended for most apps.If you only need to suppress the mic indicator before the user’s first unmute (when starting with startAudioOff: true), use the alwaysIncludeMicInPermissionPrompt: false call option instead.Return value
Returnsthis for chaining.
Audio-only pricing
For a call to be considered audio-only, it must contain no video tracks at any point. You can ensure this by starting with video disabled when creating the room, setting
videoSource: false when initializing the call object, or restricting video via meeting token permissions.If even one participant has an active video track at any point, the call will be classified and billed as a video call. Contact help@daily.co to enable audio-only pricing for your account.