---
title: "stopSpeaking(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspeechsynthesizer/stopspeaking(at:)"
---

# stopSpeaking(at:)

Stops synthesis in progress at a given boundary.

## Declaration

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

## Parameters

- `boundary`: Boundary at which to stop speech. The supported bound types are listed in doc://com.apple.appkit/documentation/AppKit/NSSpeechSynthesizer/Boundary.

## Discussion

Discussion Pass the constant NSSpeechSynthesizer.Boundary.immediateBoundary to stop immediately, even in the middle of a word. Pass NSSpeechSynthesizer.Boundary.wordBoundary or 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.

## See Also

### Synthesizing Speech

- [isSpeaking](appkit/nsspeechsynthesizer/isspeaking.md)
- [startSpeaking(_:)](appkit/nsspeechsynthesizer/startspeaking(_:).md)
- [startSpeaking(_:to:)](appkit/nsspeechsynthesizer/startspeaking(_:to:).md)
- [pauseSpeaking(at:)](appkit/nsspeechsynthesizer/pausespeaking(at:).md)
- [continueSpeaking()](appkit/nsspeechsynthesizer/continuespeaking().md)
- [stopSpeaking()](appkit/nsspeechsynthesizer/stopspeaking().md)
- [NSSpeechSynthesizer.Boundary](appkit/nsspeechsynthesizer/boundary.md)
