GetSpeechRecognitionModels class

Returns the newest models for on-device speech recognition supported by the given version of the speech recognition library, including models for speech language and voice activity detection. If the request fails or no models are returned, then built-in models or recognizeSpeech must be used instead. The method is supposed to be called after an application update, before the first on-device speech recognition, and from application settings Returns SpeechRecognitionModels

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

GetSpeechRecognitionModels({required int version})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
version Version of the speech recognition library built into the application; must be positive
final

Methods

copyWith({int? version}) → GetSpeechRecognitionModels

Available on GetSpeechRecognitionModels, provided by the GetSpeechRecognitionModelsExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

constructor → const String