recognizedWords property
String
get
recognizedWords
Returns a list of possible transcriptions of the speech.
The first value is always the same as the recognizedWords
value. Use the confidence for each alternate transcription
to determine how likely it is. Note that not all platforms
do a good job with confidence, there are convenience methods
on SpeechRecogntionWords
to work with possibly missing
confidence values.
The sequence of words that is the best transcription of
what was said.
This is the same as the first value of alternates.
Implementation
// TODO: Fix up the interface.
// List<SpeechRecognitionWords> get alternates =>
// UnmodifiableListView(alternates);
/// The sequence of words that is the best transcription of
/// what was said.
///
/// This is the same as the first value of [alternates].
String get recognizedWords =>
alternates.isNotEmpty ? alternates.first.recognizedWords : '';