SpeechTilesAndamento Docs
Get started
SDK Reference · Method

loadAudioToTextMap (JSON)

Loads an Audio Resource-to-Text Map directly from JSON text.

Declaration

public func loadAudioToTextMap(jsonData: String) -> STResult

Overview

The runner must be initialized and the Conversation runtime must be idle. Otherwise the method returns .conversationNotInitialized or .conversationNotIdle.

The map supplies text associated with recorded-audio resources for fallback/accessibility behavior documented in the Resource Formats reference.

Loading and prerequisites

Load the Audio Resource-to-Text Map 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 Audio Resource-to-Text Map document.
_ = conversation.loadAudioToTextMap(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