SDK Reference · Method
loadAudioPromptModules (JSON)
Loads Prompt Modules directly from JSON text.
Declaration
public func loadAudioPromptModules(jsonData: String) -> STResultOverview
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.