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 RecognitionListener#onResults(Bundle)
and
RecognitionListener#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 RecognitionListener#onResults(Bundle)
and RecognitionListener#onPartialResults(Bundle)
methods. The list should be the same size as the ArrayList provided in #RESULTS_RECOGNITION
.
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 #RESULTS_RECOGNITION
.
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.