SpeechTilesAndamento Docs
Get started
SDK Reference · Method

loadSSPhonemes (Array)

Loads speech-synthesis phoneme mappings from a dictionary.

Declaration

public func loadSSPhonemes(_ phonemes: [String: String]) -> STResult

Overview

Loads pronunciation overrides from a Swift dictionary. Each key is a written word and each value is its pronunciation in IPA (International Phonetic Alphabet), a standard notation for speech sounds. Use the loadSSPhonemes (URL) overload to load mappings from a file.

let result = STMediaRunner.shared.loadSSPhonemes (URL)([
    "hello": "həˈloʊ",
    "world": "wɜːrld"
])

Returns .ssPhonemesReadFailed if the phoneme list cannot be loaded.

See Also