<!--
{
  "availability" : [
    "macOS: 10.5.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpeechSynthesizer/stopSpeaking(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSpeechSynthesizer(im)stopSpeakingAtBoundary:"
  },
  "title" : "stopSpeaking(at:)"
}
-->

# stopSpeaking(at:)

Stops synthesis in progress at a given boundary.

```
func stopSpeaking(at boundary: NSSpeechSynthesizer.Boundary)
```

## Parameters

`boundary`

Boundary at which to stop speech. The supported bound types are listed in [`NSSpeechSynthesizer.Boundary`](/documentation/AppKit/NSSpeechSynthesizer/Boundary).

## Discussion

Pass the constant [`NSSpeechSynthesizer.Boundary.immediateBoundary`](/documentation/AppKit/NSSpeechSynthesizer/Boundary/immediateBoundary) to stop immediately, even in the middle of a word. Pass [`NSSpeechSynthesizer.Boundary.wordBoundary`](/documentation/AppKit/NSSpeechSynthesizer/Boundary/wordBoundary) or [`NSSpeechSynthesizer.Boundary.sentenceBoundary`](/documentation/AppKit/NSSpeechSynthesizer/Boundary/sentenceBoundary) to stop speech at the end of the current word or sentence, respectively.

If the end of the string being spoken is reached before the specified stopping point, the synthesizer stops at the end of the string without generating an error.

---

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)