---
title: "activate(voiceRecognitionText:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuisiriservice/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.

## Declaration

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

## Parameters

- `text`: The string to pass to Siri for processing.
