voicechat.setmicmuted Synchronous

Set Kawaii's microphone-mute choice for the voice mixer. This is useful for a Push to Talk or mute control alongside file playback.

Syntax
Luau
voicechat.setmicmuted(muted: boolean) -> ()

Parameters

Function parameters
ParameterTypeDescription
mutedbooleantrue to silence physical microphone samples in the mixer; false to allow them.

Returns

()

No values.

Usage notes

The host voice system can have its own mute state. getstatus reports Kawaii's micmuted value and a separate enginemuted observation.

Example

Example
Luau
local status = voicechat.getstatus()
if status.available then
    voicechat.setmicmuted(not status.micmuted)
    print("Microphone muted:", voicechat.getstatus().micmuted)
end
Kawaii documentation