SwiftstructTextToSpeech

struct TextToSpeech.CoreSynthesizer.Voice

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 38

  1. funcstatic _conditionallyBridgeFromObjectiveC(_: TTSSpeechVoice, result: inout TextToSpeech.CoreSynthesizer.Voice?) -> Bool
  2. funcstatic _forceBridgeFromObjectiveC(_: TTSSpeechVoice, result: inout TextToSpeech.CoreSynthesizer.Voice?) -> ()
  3. funcstatic _unconditionallyBridgeFromObjectiveC(TTSSpeechVoice?) -> TextToSpeech.CoreSynthesizer.Voice
  4. fieldvar _primaryLocales: CollectionsInternal.OrderedSet<String>
  5. fieldvar _secondaryLocales: CollectionsInternal.OrderedSet<String>
  6. fieldlet alternateIdentifiers: [String]+0x10
  7. fieldlet assetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?
  8. fieldlet componentDescription: AudioComponentDescription
  9. fieldvar diskSizeBytes: UInt32?
  10. fieldvar downloadSizeBytes: UInt32?
  11. fieldlet gender: TextToSpeech.CoreSynthesizer.Voice.Gender+0x39
  12. fieldlet id: String+0x0
  13. fieldlet name: String+0x28
  14. fieldvar newerAssetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?
  15. fieldlet quality: TextToSpeech.CoreSynthesizer.Voice.Quality+0x38
  16. fieldvar state: TextToSpeech.CoreSynthesizer.Voice.State
  17. fieldlet supersedingVoiceIdentifier: String?+0x18
  18. fieldvar traits: TextToSpeech.CoreSynthesizer.Voice.Trait+0x40
  19. fieldlet type: TextToSpeech.CoreSynthesizer.Voice.VoiceType+0x48
  20. func_bridgeToObjectiveC() -> TTSSpeechVoice
  21. funcfetchAudioUnit() async throws -> AVSpeechSynthesisProviderAudioUnit?
  22. funchas(TextToSpeech.CoreSynthesizer.Voice.Trait) -> Bool
  23. funcsampleText(forLocale: Foundation.Locale?) -> String?
  24. funcspeaksLanguage(locale: Foundation.Locale) -> Bool
  25. initinit(id: String, alternateIdentifiers: [String], name: String, quality: TextToSpeech.CoreSynthesizer.Voice.Quality, gender: TextToSpeech.CoreSynthesizer.Voice.Gender, traits: TextToSpeech.CoreSynthesizer.Voice.Trait, type: TextToSpeech.CoreSynthesizer.Voice.VoiceType, primaryLocales: any Collection<Self.Collection.Element == Foundation.Locale>, secondaryLocales: any Collection<Self.Collection.Element == Foundation.Locale>, componentDescription: AudioComponentDescription, downloadSizeBytes: UInt32?, diskSizeBytes: UInt32?, assetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?, state: TextToSpeech.CoreSynthesizer.Voice.State, newerAssetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?, supersedingVoiceIdentifier: String?) -> TextToSpeech.CoreSynthesizer.Voice
  26. typealiastypealias ID = Swift.String
  27. typealiastypealias _ObjectiveCType = __C.TTSSpeechVoice
  28. varvar cannonicId: String { get }
  29. varvar description: String { get }
  30. varvar locales: any Collection<Self.Collection.Element == Foundation.Locale> { get }
  31. varvar localizedName: String { get }
  32. varvar localizedNameWithFootprint: String { get }
  33. varvar primaryLocale: Foundation.Locale { get }
  34. varvar primaryLocales: any Collection<Self.Collection.Element == Foundation.Locale> { get set }
  35. varvar sampleText: String? { get }
  36. varvar secondaryLocales: any Collection<Self.Collection.Element == Foundation.Locale> { get set }
  37. varvar synthesisProviderVoice: AVSpeechSynthesisProviderVoice { get }
  38. varvar talentGroupKey: String? { get }
struct TextToSpeech.CoreSynthesizer.Voice {
    enum Gender {
        case male
        case female
        case unspecified
    }
    struct ThirdPartyVoiceDetails {
        enum CodingKeys {
            case rawIdentifier
            case manufacturerName
            case manufacturerBundleIdentifier
        }
        let rawIdentifier: Swift.String
        let manufacturerName: Swift.String
        let manufacturerBundleIdentifier: Swift.String

        init(rawIdentifier: Swift.String, manufacturerName: Swift.String, manufacturerBundleIdentifier: Swift.String)
    }
    enum VoiceType {
        enum SiriVoiceTechnology {
            case gryphon
            case neural
            case neuralAX
            case nonbranded
            case natural
        }
        case siri(technology: TextToSpeech.CoreSynthesizer.Voice.VoiceType.SiriVoiceTechnology)
        case thirdParty(TextToSpeech.CoreSynthesizer.Voice.ThirdPartyVoiceDetails)
        case legacyVocalizer
        case cerence
        case custom
        case personal
        case eloquence
        case macintalk

        var description: Swift.String {
            get
        }
    }
    enum Quality {
        case none
        case supercompact
        case compact
        case enhanced
        case premium

        var description: Swift.String {
            get
        }
    }
    struct Trait {
        let rawValue: Swift.UInt

        var description: Swift.String {
            get
        }

        static var downloadable: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var downloading: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var firstParty: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasNaturalCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasNeuralAXCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasNeuralCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasPremiumSiriCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasSuperCompactCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var hasSystemCounterpart: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var installed: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var localeDefault: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var novelty: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var personal: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var publicAPIForbidden: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var siri: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var superseded: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var system: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
        static var thirdParty: TextToSpeech.CoreSynthesizer.Voice.Trait {
            get
        }
    }
    struct AssetIdentifier {
        let loader: Swift.String
        let identifier: Swift.String
        let version: Swift.Int

        init(loader: Swift.String, identifier: Swift.String, version: Swift.Int)
    }
    enum State {
        case installed(purgeable: Swift.Bool)
        case downloadable
        case downloading
    }
    enum CodingKeys {
        case id
        case alternateIdentifiers
        case supersedingVoiceIdentifier
        case name
        case quality
        case gender
        case traits
        case type
        case _primaryLocales
        case _secondaryLocales
        case componentDescription
        case downloadSizeBytes
        case diskSizeBytes
        case state
        case assetId
        case newerAssetId
    }
    let id: Swift.String
    let alternateIdentifiers: [Swift.String]
    let supersedingVoiceIdentifier: Swift.String?
    let name: Swift.String
    let quality: TextToSpeech.CoreSynthesizer.Voice.Quality
    let gender: TextToSpeech.CoreSynthesizer.Voice.Gender
    var traits: TextToSpeech.CoreSynthesizer.Voice.Trait
    let type: TextToSpeech.CoreSynthesizer.Voice.VoiceType
    var _primaryLocales: CollectionsInternal.OrderedSet<Swift.String>
    var _secondaryLocales: CollectionsInternal.OrderedSet<Swift.String>
    let componentDescription: __C.AudioComponentDescription
    var downloadSizeBytes: Swift.UInt32?
    var diskSizeBytes: Swift.UInt32?
    var state: TextToSpeech.CoreSynthesizer.Voice.State
    let assetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?
    var newerAssetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?

    init(id: Swift.String, alternateIdentifiers: [Swift.String], name: Swift.String, quality: TextToSpeech.CoreSynthesizer.Voice.Quality, gender: TextToSpeech.CoreSynthesizer.Voice.Gender, traits: TextToSpeech.CoreSynthesizer.Voice.Trait, type: TextToSpeech.CoreSynthesizer.Voice.VoiceType, primaryLocales: any Swift.Collection<Foundation.Locale>, secondaryLocales: any Swift.Collection<Foundation.Locale>, componentDescription: __C.AudioComponentDescription, downloadSizeBytes: Swift.UInt32?, diskSizeBytes: Swift.UInt32?, assetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?, state: TextToSpeech.CoreSynthesizer.Voice.State, newerAssetId: TextToSpeech.CoreSynthesizer.Voice.AssetIdentifier?, supersedingVoiceIdentifier: Swift.String?)

    var cannonicId: Swift.String {
        get
    }
    var description: Swift.String {
        get
    }
    var locales: any Swift.Collection<Foundation.Locale> {
        get
    }
    var localizedName: Swift.String {
        get
    }
    var localizedNameWithFootprint: Swift.String {
        get
    }
    var primaryLocale: Foundation.Locale {
        get
    }
    var primaryLocales: any Swift.Collection<Foundation.Locale> {
        get
        set
    }
    var sampleText: Swift.String? {
        get
    }
    var secondaryLocales: any Swift.Collection<Foundation.Locale> {
        get
        set
    }
    var synthesisProviderVoice: __C.AVSpeechSynthesisProviderVoice {
        get
    }
    var talentGroupKey: Swift.String? {
        get
    }

    func sampleText(forLocale: Foundation.Locale?) -> Swift.String?
    func _bridgeToObjectiveC() -> __C.TTSSpeechVoice
    func fetchAudioUnit() async throws -> __C.AVSpeechSynthesisProviderAudioUnit?
    func speaksLanguage(locale: Foundation.Locale) -> Swift.Bool
    func has(_: TextToSpeech.CoreSynthesizer.Voice.Trait) -> Swift.Bool

    static func _forceBridgeFromObjectiveC(_: __C.TTSSpeechVoice, result: inout TextToSpeech.CoreSynthesizer.Voice?)
    static func _conditionallyBridgeFromObjectiveC(_: __C.TTSSpeechVoice, result: inout TextToSpeech.CoreSynthesizer.Voice?) -> Swift.Bool
    static func _unconditionallyBridgeFromObjectiveC(_: __C.TTSSpeechVoice?) -> TextToSpeech.CoreSynthesizer.Voice
}