<!--
{
  "availability" : [
    "macOS: 10.3.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/VoiceGender",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSVoiceGenderName"
  },
  "title" : "NSSpeechSynthesizer.VoiceGender"
}
-->

# NSSpeechSynthesizer.VoiceGender

The following constants define voice gender attributes, which are the allowable values of the [`gender`](/documentation/AppKit/NSSpeechSynthesizer/VoiceAttributeKey/gender) key returned by [`attributes(forVoice:)`](/documentation/AppKit/NSSpeechSynthesizer/attributes(forVoice:)).

```
struct VoiceGender
```

## Topics

### Gender Values

[`static let neuter: NSSpeechSynthesizer.VoiceGender`](/documentation/AppKit/NSSpeechSynthesizer/VoiceGender/neuter)

A neutral voice (or a novelty voice with a humorous or whimsical quality).

[`static let female: NSSpeechSynthesizer.VoiceGender`](/documentation/AppKit/NSSpeechSynthesizer/VoiceGender/female)

A female voice

[`static let male: NSSpeechSynthesizer.VoiceGender`](/documentation/AppKit/NSSpeechSynthesizer/VoiceGender/male)

A male voice

### Type Properties

[`static let neutral: NSSpeechSynthesizer.VoiceGender`](/documentation/AppKit/NSSpeechSynthesizer/VoiceGender/neutral)

### Initializers

[`init(rawValue: String)`](/documentation/AppKit/NSSpeechSynthesizer/VoiceGender/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)