SDK Reference · Type
STVoiceGender
Specifies speech-synthesis voice gender criteria.
Overview
Use this value as a selection criterion when requesting a speech-synthesis voice. It describes a voice attribute rather than a guarantee that a matching voice is installed. Voice availability depends on the platform and installed voices.
public enum STVoiceGender: String, Sendable {
case unspecified
case male
case female
}
Use this value in STSSVoiceParams.
Cases
.unspecified— Unspecified option..male— Male option..female— Female option.
Swift example
let selection: STVoiceGender = .unspecified