SpeechRecognizer.ResultsAlternatives Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Key used to retrieve an ArrayList<AlternativeSpans> from the Bundle
passed to the OnResults(Bundle) and
OnPartialResults(Bundle) methods.
[Android.Runtime.Register("RESULTS_ALTERNATIVES", ApiSince=34)]
public const string ResultsAlternatives;
[<Android.Runtime.Register("RESULTS_ALTERNATIVES", ApiSince=34)>]
val mutable ResultsAlternatives : string
Field Value
- Attributes
Remarks
Key used to retrieve an ArrayList<AlternativeSpans> from the Bundle passed to the OnResults(Bundle) and OnPartialResults(Bundle) methods. The list should be the same size as the ArrayList provided in ResultsRecognition.
A single SpeechRecognizer result is represented as a String. For a specific span (substring) of the originally recognized result string the recognizer provides a list of alternative hypotheses in the form of an AlternativeSpan object. Alternatives for different spans of a result string are listed in an AlternativeSpans object. Each item from the ArrayList retrieved by this key corresponds to a single result string provided in ResultsRecognition.
This value is optional and might not be provided.
Java documentation for android.speech.SpeechRecognizer.RESULTS_ALTERNATIVES.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.