OSSVoiceEnum
public enum OSSVoiceEnum : String, CaseIterable
The available system voices.
The enum is iteratable; access to an array of the enum values can be accessed using:
OSSVoiceEnum.allCases
-
SaudiArabian
Declaration
Swift
case SaudiArabian = "ar-SA"
-
Czech
Declaration
Swift
case Czech = "cs-CZ"
-
Danish
Declaration
Swift
case Danish = "da-DK"
-
German
Declaration
Swift
case German = "de-DE"
-
Greek
Declaration
Swift
case Greek = "el-GR"
-
Australian
Declaration
Swift
case Australian = "en-AU"
-
English
Declaration
Swift
case English = "en-GB"
-
Irish English
Declaration
Swift
case IrishEnglish = "en-IE"
-
USA English
Declaration
Swift
case UnitedStatesEnglish = "en-US"
-
South African English
Declaration
Swift
case SouthAfricanEnglish = "en-ZA"
-
Spanish
Declaration
Swift
case Spanish = "es-ES"
-
Mexican
Declaration
Swift
case Mexican = "es-MX"
-
Finnish
Declaration
Swift
case Finnish = "fi-FI"
-
Canidian French
Declaration
Swift
case CanadianFrench = "fr-CA"
-
French
Declaration
Swift
case French = "fr-FR"
-
Hebrew
Declaration
Swift
case Hebrew = "he-IL"
-
Hindi
Declaration
Swift
case Hindi = "hi-IN"
-
Hungarian
Declaration
Swift
case Hungarian = "hu-HU"
-
Indonedian
Declaration
Swift
case Indonesian = "id-ID"
-
Italian
Declaration
Swift
case Italian = "it-IT"
-
Japanese
Declaration
Swift
case Japanese = "ja-JP"
-
Korean
Declaration
Swift
case Korean = "ko-KR"
-
Dutch Beligium
Declaration
Swift
case DutchBelgium = "nl-BE"
-
Dutch Netherlands
Declaration
Swift
case DutchNetherlands = "nl-NL"
-
Norwegian
Declaration
Swift
case Norwegian = "no-NO"
-
Polish
Declaration
Swift
case Polish = "pl-PL"
-
Brazilian
Declaration
Swift
case Brazilian = "pt-BR"
-
Portuguese
Declaration
Swift
case Portuguese = "pt-PT"
-
Romanian
Declaration
Swift
case Romanian = "ro-RO"
-
Russian
Declaration
Swift
case Russian = "ru-RU"
-
Slovakian
Declaration
Swift
case Slovakian = "sk-SK"
-
Swedish
Declaration
Swift
case Swedish = "sv-SE"
-
Thai
Declaration
Swift
case Thai = "th-TH"
-
Turkish
Declaration
Swift
case Turkish = "tr-TR"
-
Chinese
Declaration
Swift
case Chinese = "zh-CH"
-
Chinese Hong Kong
Declaration
Swift
case ChineseHongKong = "zh-HK"
-
Taiwanese
Declaration
Swift
case Taiwanese = "zh-TW"
-
Will return specific information about the language as an OSSVoiceInfo object.
Declaration
Swift
public func getDetails() -> OSSVoiceInfo
-
Provides the Enum key itself as a String
Declaration
Swift
public var title: String { get }
-
Demo message is for returning a string in the language that will be read while also providing the name of the voice that Apple have provided.
Declaration
Swift
public var demoMessage: String { get }