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

# stopSpeaking(at:)

Stops speech at the boundary you specify.

## Declaration

```swift
func stopSpeaking(at boundary: AVSpeechBoundary) -> Bool
```

## Parameters

- `boundary`: An enumeration that describes whether to stop speech immediately or only after the synthesizer finishes speaking the current word.

## Return Value

Return Value true if speech stops; otherwise, false.

## Discussion

Discussion Unlike pausing a speech synthesizer, which can resume after a pause, stopping the synthesizer immediately cancels speech and removes all unspoken utterances from the synthesizer’s queue.

## See Also

### Controlling speech

- [speak(_:)](avfaudio/avspeechsynthesizer/speak(_:).md)
- [continueSpeaking()](avfaudio/avspeechsynthesizer/continuespeaking().md)
- [pauseSpeaking(at:)](avfaudio/avspeechsynthesizer/pausespeaking(at:).md)
- [AVSpeechBoundary](avfaudio/avspeechboundary.md)
