---
title: pitchMod
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsspeechsynthesizer/speechpropertykey/pitchmod
---

# pitchMod

Get or set a synthesizer’s pitch modulation.

## Declaration

```swift
static let pitchMod: NSSpeechSynthesizer.SpeechPropertyKey
```

## Discussion

Discussion An NSNumber object that specifies the synthesizer’s pitch modulation. Pitch modulation is also expressed as a floating-point value in the range of 0.000 to 127.000. These values correspond to MIDI note values, where 60.000 is equal to middle C on a piano scale. The most useful speech pitches fall in the range of 40.000 to 55.000. A pitch modulation value of 0.000 corresponds to a monotone in which all speech is generated at the frequency corresponding to the speech pitch. Given a speech pitch value of 46.000, a pitch modulation of 2.000 would mean that the widest possible range of pitches corresponding to the actual frequency of generated text would be 44.000 to 48.000. This property is used with setObject(_:forProperty:) and object(forProperty:). note: The change in pitch modulation may not be noticeable until the next sentence or paragraph is spoken.

## See Also

### Speech Property Keys

- [status](appkit/nsspeechsynthesizer/speechpropertykey/status.md)
- [errors](appkit/nsspeechsynthesizer/speechpropertykey/errors.md)
- [inputMode](appkit/nsspeechsynthesizer/speechpropertykey/inputmode.md)
- [characterMode](appkit/nsspeechsynthesizer/speechpropertykey/charactermode.md)
- [numberMode](appkit/nsspeechsynthesizer/speechpropertykey/numbermode.md)
- [rate](appkit/nsspeechsynthesizer/speechpropertykey/rate.md)
- [pitchBase](appkit/nsspeechsynthesizer/speechpropertykey/pitchbase.md)
- [volume](appkit/nsspeechsynthesizer/speechpropertykey/volume.md)
- [synthesizerInfo](appkit/nsspeechsynthesizer/speechpropertykey/synthesizerinfo.md)
- [recentSync](appkit/nsspeechsynthesizer/speechpropertykey/recentsync.md)
- [phonemeSymbols](appkit/nsspeechsynthesizer/speechpropertykey/phonemesymbols.md)
- [currentVoice](appkit/nsspeechsynthesizer/speechpropertykey/currentvoice.md)
- [commandDelimiter](appkit/nsspeechsynthesizer/speechpropertykey/commanddelimiter.md)
- [reset](appkit/nsspeechsynthesizer/speechpropertykey/reset.md)
- [outputToFileURL](appkit/nsspeechsynthesizer/speechpropertykey/outputtofileurl.md)
