<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUISiriService/activate(voiceRecognitionText:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:objc(cs)XCUISiriService(im)activateWithVoiceRecognitionText:"
  },
  "title" : "activate(voiceRecognitionText:)"
}
-->

# activate(voiceRecognitionText:)

Presents the Siri UI, if it’s not currently active, and accepts a string that is then processed as if it’s recognized speech.

```
func activate(voiceRecognitionText text: String)
```

## Parameters

`text`

The string to pass to Siri for processing.

---

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)