# SpeechRecognition

# SpeechRecognition


```
object SpeechRecognition
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/speechrecognition/SpeechRecognition#getClient(com.google.mlkit.genai.speechrecognition.SpeechRecognizerOptions)(options: https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/speechrecognition/SpeechRecognizerOptions)` Creates a new instance of `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/speechrecognition/SpeechRecognizer` with the specified options. |

## Public functions

### getClient

```
fun getClient(options: SpeechRecognizerOptions = speechRecognizerOptions {}): SpeechRecognizer
```

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

| Parameters |
|---|---|
| `options: https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/speechrecognition/SpeechRecognizerOptions = speechRecognizerOptions {}` | the configuration for speech recognition. If not provided, default options are used. |