voicechat. play Asynchronous
Start decoding and playing an audio file through the voice-chat playback service.
Luau
voicechat.play(path: string, legacyMode: string?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Path to the audio file to play. |
legacyMode | string? | 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.