asset_id values cannot be changed or replaced in v1. If any asset in the event is invalid, none of the assets in that event are registered. Wait for asset.added before referencing the new ids from response.script.
Event fields
string
Client-generated id for this event.
string
required
Event type. Must be
asset.add.object
required
Assets to register for later scripted responses. Provide at least one asset across
images, audio, speech_text, or visual_prompts.array
Reusable images that can be registered to the underlying media session.
string
required
Caller-defined image asset id, unique within the session.
string
required
HTTPS URL for the image file.
string
Image MIME type, such as
image/png or image/jpeg.array
Reusable audio files for
response.script.vocal.type: "audio_asset".string
required
Caller-defined audio asset id, unique within the session.
string
required
HTTPS URL for the audio file. The URL must be directly fetchable by Vivix without custom request headers.
string
Audio MIME type. Supported values are
audio/wav and audio/mpeg.array
Reusable exact speech text for
response.script.vocal.type: "speech_asset".string
required
Caller-defined speech text asset id, unique within the session.
string
required
Exact text to synthesize. When used in
response.script, it also streams through output text events.string
Text format, such as
text or ssml.array
Reusable visual instructions for
response.script.visual.visual_prompt_asset_id.string
required
Caller-defined visual prompt asset id, unique within the session.
string
required
Reusable visual instruction text describing avatar movement, posture, gaze, gestures, or presentation.
string
Text format, such as
text.