OnDeviceLanguages class

On-device speech-recognition languages (getOnDeviceLanguages()). Tags like "pt-BR".

Constructors

OnDeviceLanguages({required bool apiSupported, required List<String> installed, required List<String> pending, required List<String> supportedOnDevice, required List<String> online, required List<String> cloudFallback, String? error})
const
OnDeviceLanguages.fromMap(Map<String, dynamic> m)
factory

Properties

apiSupported → bool
False on Android below 13 (no way to ask); the lists are then empty.
final
cloudFallback → List<String>
Languages this app switched to cloud recognition because their on-device model is missing (Android).
final
error → String?
Set when the query failed or timed out (Android).
final
hashCode → int
The hash code for this object.
no setterinherited
installed → List<String>
On-device model present now: offline recognition works.
final
online → List<String>
Recognized in the cloud by the system recognizer.
final
pending → List<String>
On-device model downloading (Android).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedOnDevice → List<String>
Can be downloaded for on-device use (Android); on iOS the same as installed.
final

Methods

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

Operators

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