Skip to main content
POST
Load and play a sound file

Body

application/json

Load and play a clip: path to the audio file, volume (default 1.0), loop (default false), optional position [x,y,z] (makes it spatial), and max_distance (default 50.0).

The body is of type any.

Response

200 - application/json

Spawned audio-source entity id, the clip handle, and whether it is spatial; returns an error field on a missing path or load failure.