SpeechTilesAndamento Docs
Get started
SDK Reference · Method

loadAudioPromptModules (JSON)

Loads Prompt Modules directly from JSON text.

Declaration

public func loadAudioPromptModules(jsonData: String) -> STResult

Overview

Requires an initialized runner and an idle Conversation runtime. Loading while execution is not idle returns .conversationNotIdle.

Prompt Module schema and playback/fallback semantics are owned by the Configuration Reference; this API page documents the runtime loading boundary.

Loading and prerequisites

Load the Prompt Module definitions directly from JSON text supplied by the application. Supply a complete valid document of the expected schema; the example illustrates invocation, not a full schema.

Usage example

// jsonText contains a complete, validated Prompt Module definitions document.
_ = conversation.loadAudioPromptModules(jsonData: jsonText)

Result handling

This loading method executes synchronously. .success indicates that the requested resource data was loaded successfully. Handle other STResult values as loading failures.

See Also