# SpeechRecognition

# SpeechRecognition


```
public static class SpeechRecognition
```

<br />

*** ** * ** ***

Entry class to get a `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` for speech recognition.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognition` | `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognition#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` | `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognition#getClient(com.google.mlkit.genai.speechrecognition.SpeechRecognizerOptions)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizerOptions options)` Creates a new instance of `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` with the specified options. |

## Public fields

### INSTANCE

```
public static @NonNull SpeechRecognition INSTANCE
```

## Public methods

### getClient

```
public final @NonNull SpeechRecognizer getClient(@NonNull SpeechRecognizerOptions options)
```

Creates a new instance of `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` with the specified options.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizerOptions options` | the configuration for speech recognition. If not provided, default options are used. |