SpeechRecognitionModel class

Describes a model for on-device speech recognition

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

SpeechRecognitionModel({required Document document, required List<String> languageCodes, required int version})
const

Properties

document → Document
document The file with the model
final
hashCode → int
The hash code for this object.
no setteroverride
languageCodes → List<String>
languageCodes IETF language tags of the languages supported by the model
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
version The minimum version of the speech recognition library that supports the model
final

Methods

copyWith({Document? document, List<String>? languageCodes, int? version}) → SpeechRecognitionModel

Available on SpeechRecognitionModel, provided by the SpeechRecognitionModelExtensions 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

Static Methods

fromJson(Map<String, dynamic>? json) → SpeechRecognitionModel?

Constants

constructor → const String