voicechat.play Asynchronous

Start decoding and playing an audio file through the voice-chat playback service.

Syntax
Luau
voicechat.play(path: string, legacyMode: string?) -> ()

Parameters

Function parameters
ParameterTypeDescription
pathstringPath to the audio file to play.
legacyModestring?Optional compatibility argument. If supplied, it must be the string capture; explicit nil is rejected.

Returns

()

This function returns no values.

Usage notes

Playback continues after this call returns. Read getstatus to inspect its state, progress, and reported errors.

Kawaii documentation