PhoneticTranscription
public struct PhoneticTranscription : Equatable
Represents the phonetic transcription of a message part used in voice messages.
The PhoneticTranscription struct holds phonetic transcriptions for a message part,
along with the languages in which the transcriptions are encoded, the tag for the original string,
and the format of the phonetic transcriptions alphabet.
Example usage:
let phoneticTranscription = PhoneticTranscription(
transcriptions: [],
languages: [Locale(identifier: "en-US")],
tag: "exampleTag",
alphabet: "IPA"
)
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a
PhoneticTranscriptioninstance.Declaration
Swift
public init(transcriptions: [String], languages: [Locale], tag: String, alphabet: String)Parameters
transcriptionsPhonetic transcriptions.
languagesThe languages in which the phonetic string is encoded as
Locales.tagTag in which the original string is embedded.
alphabetFormat of the phonetic transcriptions alphabet.
-
Phonetic transcriptions.
Declaration
Swift
public let transcriptions: [String] -
The
Locales in which the phonetic string is encoded.Declaration
Swift
public let languages: [Locale] -
Tag in which the original string is embedded.
Declaration
Swift
public let tag: String -
Format of the phonetic transcriptions alphabet.
Declaration
Swift
public let alphabet: String
TomTom SDK for iOS (0.71.1)
PhoneticTranscription