voicechat.setvolume Synchronous

Adjust the file audio mixed into voice capture. Zero silences the clip; one is its normal level.

Syntax
Luau
voicechat.setvolume(volume: number) -> ()

Parameters

Function parameters
ParameterTypeDescription
volumenumberFinite multiplier from 0 through 4.

Returns

()

No values.

Usage notes

This controls file playback volume in the mixer. Values outside the range raise.

Example

Example
Luau
if voicechat.getstatus().available then
    voicechat.setvolume(0.6)
    print("Clip volume:", voicechat.getstatus().volume)
end
Kawaii documentation