OSSVoiceConfiguration
public struct OSSVoiceConfiguration
Selects an actual voice exposed by AVFoundation.
-
Language or regional variant used to search installed voices.
Declaration
Swift
public var language: OSSLanguage -
Specific AVFoundation voice identifier to prefer when available.
Declaration
Swift
public var preferredIdentifier: String? -
Preferred voice quality to use when multiple voices match the language.
Declaration
Swift
public var preferredQuality: AVSpeechSynthesisVoiceQuality? -
Creates a voice selection request.
Declaration
Swift
public init( language: OSSLanguage, preferredIdentifier: String? = nil, preferredQuality: AVSpeechSynthesisVoiceQuality? = nil )Parameters
languageLanguage metadata used to find matching voices.
preferredIdentifierOptional exact AVFoundation voice identifier.
preferredQualityOptional quality preference for matched voices.
-
Resolves the best currently available system voice without relying on AVFoundation’s silent cross-region fallback.
Declaration
Swift
public func resolve() -> AVSpeechSynthesisVoice?
View on GitHub
OSSVoiceConfiguration Structure Reference