voicechat. stop Synchronous
Stop the current file playback and clear its path and progress. Use it when the user cancels a clip or starts a different activity.
Luau
voicechat.stop() -> ()Parameters
This function takes no arguments.
Returns
()No values.
Usage notes
Stop invalidates a pending decode too. Speed, volume, and microphone mute settings remain as they were.
Example
Luau
local status = voicechat.getstatus()
if status.available and status.state ~= "stopped" then
voicechat.stop()
print("Playback stopped")
end