SpeechRecognitionAlternative constructor
SpeechRecognitionAlternative({})
Implementation
factory SpeechRecognitionAlternative({
$core.String? transcript,
$core.double? confidence,
$core.Iterable<WordInfo>? words,
}) {
final $result = create();
if (transcript != null) {
$result.transcript = transcript;
}
if (confidence != null) {
$result.confidence = confidence;
}
if (words != null) {
$result.words.addAll(words);
}
return $result;
}