# KeywordRecognizer

> Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Windows.Speech](/engine/6000.5/script-reference/unityengine/windows/speech.md)
* **Assembly:** UnityEngine.CoreModule

## KeywordRecognizer(string\[])

Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.

```csharp
public KeywordRecognizer(string[] keywords)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The keywords that the recognizer will listen to.

### Remarks

If no minimum confidence level is specified, then the confidence level is assumed to be Medium.

## KeywordRecognizer(string\[], ConfidenceLevel)

Create a KeywordRecognizer which listens to specified keywords with the specified minimum confidence. Phrases under the specified minimum level will be ignored.

```csharp
public KeywordRecognizer(string[] keywords, ConfidenceLevel minimumConfidence)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The keywords that the recognizer will listen to.**** (\[ConfidenceLevel]\(/engine/6000.5/script-reference/unityengine/windows/speech/confidencelevel)): The minimum confidence level of speech recognition that the recognizer will accept.

### Remarks

If no minimum confidence level is specified, then the confidence level is assumed to be Medium.
