# RecognitionSupport.Builder

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/speech/RecognitionSupport.Builder "View this page in Java")  

```
class Builder
```

|---|----------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                         ||
| ↳ | [android.speech.RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) |

A builder for[RecognitionSupport](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport)

## Summary

|                                                     Public constructors                                                     ||
|--------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#Builder())`()` <br /> |

|                                                                                                                                                                                                                                                                                                 Public methods                                                                                                                                                                                                                                                                                                 ||
|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [addInstalledOnDeviceLanguage](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#addInstalledOnDeviceLanguage(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br />                                                                                                                                                                                                            |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [addOnlineLanguage](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#addOnlineLanguage(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br />                                                                                                                                                                                                                                  |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [addPendingOnDeviceLanguage](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#addPendingOnDeviceLanguage(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br />                                                                                                                                                                                                                |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [addSupportedOnDeviceLanguage](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#addSupportedOnDeviceLanguage(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br />                                                                                                                                                                                                            |
| [RecognitionSupport](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport)                  | [build](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#build())`()` Builds the instance.                                                                                                                                                                                                                                                                                                                                                    |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [setInstalledOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setInstalledOnDeviceLanguages(kotlin.collections.MutableList))`(`value:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>`)` Support for this request is ready for use on this device for the returned languages. |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [setOnlineLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setOnlineLanguages(kotlin.collections.MutableList))`(`value:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>`)` Support for this request is available via a remote implementation.                                         |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [setPendingOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setPendingOnDeviceLanguages(kotlin.collections.MutableList))`(`value:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>`)` Support for this request is scheduled for download for the returned languages.           |
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | [setSupportedOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setSupportedOnDeviceLanguages(kotlin.collections.MutableList))`(`value:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>`)` These languages are supported but need to be downloaded before use.                  |

## Public constructors

### Builder

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Builder()
```

## Public methods

### addInstalledOnDeviceLanguage

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun addInstalledOnDeviceLanguage(value: String): RecognitionSupport.Builder
```

|                                                      Parameters                                                       ||
|---------|--------------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

**See Also**

- [#setInstalledOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setInstalledOnDeviceLanguages(kotlin.collections.MutableList))  

### addOnlineLanguage

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun addOnlineLanguage(value: String): RecognitionSupport.Builder
```

|                                                      Parameters                                                       ||
|---------|--------------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

**See Also**

- [#setOnlineLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setOnlineLanguages(kotlin.collections.MutableList))  

### addPendingOnDeviceLanguage

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun addPendingOnDeviceLanguage(value: String): RecognitionSupport.Builder
```

|                                                      Parameters                                                       ||
|---------|--------------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

**See Also**

- [#setPendingOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setPendingOnDeviceLanguages(kotlin.collections.MutableList))  

### addSupportedOnDeviceLanguage

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun addSupportedOnDeviceLanguage(value: String): RecognitionSupport.Builder
```

|                                                      Parameters                                                       ||
|---------|--------------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

**See Also**

- [#setSupportedOnDeviceLanguages](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#setSupportedOnDeviceLanguages(kotlin.collections.MutableList))  

### build

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun build(): RecognitionSupport
```

Builds the instance. This builder should not be touched after calling this!

|                                                               Return                                                                ||
|--------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport) | This value cannot be`null`. |

### setInstalledOnDeviceLanguages

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setInstalledOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder
```

Support for this request is ready for use on this device for the returned languages.

|                                                                                                            Parameters                                                                                                             ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>:This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

### setOnlineLanguages

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setOnlineLanguages(value: MutableList<String!>): RecognitionSupport.Builder
```

Support for this request is available via a remote implementation.[SpeechRecognizer](https://developer.android.com/reference/kotlin/android/speech/SpeechRecognizer)created via[SpeechRecognizer.createOnDeviceSpeechRecognizer(Context)](https://developer.android.com/reference/kotlin/android/speech/SpeechRecognizer#createOnDeviceSpeechRecognizer(android.content.Context))are expected to return an empty list.

|                                                                                                            Parameters                                                                                                             ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>:This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

### setPendingOnDeviceLanguages

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setPendingOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder
```

Support for this request is scheduled for download for the returned languages.

|                                                                                                            Parameters                                                                                                             ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>:This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |

### setSupportedOnDeviceLanguages

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setSupportedOnDeviceLanguages(value: MutableList<String!>): RecognitionSupport.Builder
```

These languages are supported but need to be downloaded before use. See[android.speech.SpeechRecognizer#triggerModelDownload(android.content.Intent)](https://developer.android.com/reference/kotlin/android/speech/SpeechRecognizer#triggerModelDownload(android.content.Intent)).

|                                                                                                            Parameters                                                                                                             ||
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>:This value cannot be`null`. |

|                                                                        Return                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [RecognitionSupport.Builder](https://developer.android.com/reference/kotlin/android/speech/RecognitionSupport.Builder#) | This value cannot be`null`. |