SpeechTilesAndamento Docs
Get started
SDK Reference · Method

loadSSAliases (Array)

Loads speech-synthesis word aliases 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.

let result = STMediaRunner.shared.loadSSAliases (URL)([
    "GitHub": "Git Hub",
    "iOS": "eye oh ess"
])

Returns .ssAliasesReadFailed if the alias list cannot be loaded.

See Also