RecognitionSupport.Builder
public
static
final
class
RecognitionSupport.Builder
extends Object
java.lang.Object | |
↳ | android.speech.RecognitionSupport.Builder |
A builder for RecognitionSupport
Summary
Public constructors | |
---|---|
Builder()
|
Public methods | |
---|---|
RecognitionSupport.Builder
|
addInstalledOnDeviceLanguage(String value)
|
RecognitionSupport.Builder
|
addOnlineLanguage(String value)
|
RecognitionSupport.Builder
|
addPendingOnDeviceLanguage(String value)
|
RecognitionSupport.Builder
|
addSupportedOnDeviceLanguage(String value)
|
RecognitionSupport
|
build()
Builds the instance. |
RecognitionSupport.Builder
|
setInstalledOnDeviceLanguages(List<String> value)
Support for this request is ready for use on this device for the returned languages. |
RecognitionSupport.Builder
|
setOnlineLanguages(List<String> value)
Support for this request is available via a remote implementation. |
RecognitionSupport.Builder
|
setPendingOnDeviceLanguages(List<String> value)
Support for this request is scheduled for download for the returned languages. |
RecognitionSupport.Builder
|
setSupportedOnDeviceLanguages(List<String> value)
These languages are supported but need to be downloaded before use. |
Inherited methods | |
---|---|
Public constructors
Public methods
addInstalledOnDeviceLanguage
public RecognitionSupport.Builder addInstalledOnDeviceLanguage (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See also:
addOnlineLanguage
public RecognitionSupport.Builder addOnlineLanguage (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See also:
addPendingOnDeviceLanguage
public RecognitionSupport.Builder addPendingOnDeviceLanguage (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See also:
addSupportedOnDeviceLanguage
public RecognitionSupport.Builder addSupportedOnDeviceLanguage (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
See also:
build
public RecognitionSupport build ()
Builds the instance. This builder should not be touched after calling this!
Returns | |
---|---|
RecognitionSupport |
This value cannot be null . |
setInstalledOnDeviceLanguages
public RecognitionSupport.Builder setInstalledOnDeviceLanguages (List<String> value)
Support for this request is ready for use on this device for the returned languages.
Parameters | |
---|---|
value |
List : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
setOnlineLanguages
public RecognitionSupport.Builder setOnlineLanguages (List<String> value)
Support for this request is available via a remote implementation. SpeechRecognizer
created via SpeechRecognizer.createOnDeviceSpeechRecognizer(Context)
are expected to
return an empty list.
Parameters | |
---|---|
value |
List : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
setPendingOnDeviceLanguages
public RecognitionSupport.Builder setPendingOnDeviceLanguages (List<String> value)
Support for this request is scheduled for download for the returned languages.
Parameters | |
---|---|
value |
List : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |
setSupportedOnDeviceLanguages
public RecognitionSupport.Builder setSupportedOnDeviceLanguages (List<String> value)
These languages are supported but need to be downloaded before use. See SpeechRecognizer.triggerModelDownload(android.content.Intent)
.
Parameters | |
---|---|
value |
List : This value cannot be null . |
Returns | |
---|---|
RecognitionSupport.Builder |
This value cannot be null . |