BalancedAlternates class

Constructors

BalancedAlternates()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(int phrase, String words, double confidence) → void
Add a new phrase to a particular alternate. The way this works is that the first alternate is the most likely, the second alternate is the second most likely, etc. The first alternate is the one that is returned by the speech recognition engine as 'the answer'. Engines may return more than one alternate, but the first one will always contain the most phrases. If a phrase is added to an alternate that
getAlternates(bool aggregateResults) List<SpeechRecognitionWords>
Return the full speech recognition results which is the concatenation of all the alternates and all their phrases into separate results. The approach is to concatenate the all phrases from the first, or most likely, alternate. The first is assumed to have the most phrases, since there must be a recognition result for a phrase or it wouldn't have alternates. Then all the phrases for each subsequent alternate are concatenated, any phrase that is missing an alternate has that alternate filled in with the previous alternate. This is done so that the result is a complete transcript of all the alternates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

isAggregateResultsEnabled(List<SpeechConfigOption>? options) bool