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
PhoneticTranscription
instance.Declaration
Swift
public init(transcriptions: [String], languages: [Locale], tag: String, alphabet: String)
Parameters
transcriptions
Phonetic transcriptions.
languages
The languages in which the phonetic string is encoded as
Locale
s.tag
Tag in which the original string is embedded.
alphabet
Format of the phonetic transcriptions alphabet.
-
Phonetic transcriptions.
Declaration
Swift
public let transcriptions: [String]
-
The
Locale
s 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