Talos docs

audio

Since 0.6
Plain text

Use it in a scene entity's components list as { "type": "audio", … }. The contract writes the fields flat and refuses unknown keys.

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
assetstringyes
spatialbooleanyes
loopbooleanyes
volumenumberyes
autoplaybooleanno
rangenumberno

Rules that can refuse it

Example

From the contract's tested fixture fixtures/contract/full20/scene.json#speaker.

{
  "type": "audio",
  "asset": "ambience",
  "spatial": true,
  "loop": true,
  "volume": 0.4,
  "autoplay": true,
  "range": 12
}