<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/startSpeaking(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(im)startSpeaking:"
  },
  "title" : "startSpeaking(_:)"
}
-->

# startSpeaking(_:)

An action method that starts speaking the selected text or all text if there’s no selection.

```
func startSpeaking(_ sender: Any?)
```

## Parameters

`sender`

The object that sent this message.

## Discussion

Speech continues asynchronously until the end of the text or until terminated by invoking the [`stopSpeaking(_:)`](/documentation/WebKit/WebView-swift.class/stopSpeaking(_:)) method. This method behaves similar to the <doc://com.apple.documentation/documentation/AppKit/NSTextView/startSpeaking(_:)> method in <doc://com.apple.documentation/documentation/AppKit/NSTextView>.

---

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)