SpeechTilesAndamento Docs
Get started
SDK Reference · Method

loadSSAliases (Array)

Loads speech-synthesis aliases directly from a dictionary.

Declaration

public func loadSSAliases(
    _ aliases: [String: String]
) -> STResult

Overview

Loads text-substitution aliases from a Swift dictionary. Keys are the original words or phrases and values are their spoken replacements. To load the same mappings from a file, use the loadSSAliases (URL) overload.

Dictionary-based mappings

Supply a dictionary of source text and replacement text. Use the file-based overload when mappings are maintained as a UTF-8 resource.

Parameters

  • aliases — [ String : String ] Refer to the method-specific behavior and usage example for how this parameter is used.

Usage example

_ = conversation.loadSSAliases(["Dr.": "Doctor"])

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