StreamingRecognitionResult constructor
StreamingRecognitionResult({
- StreamingRecognitionResult_MessageType? messageType,
- String? transcript,
- bool? isFinal,
- double? confidence,
- Iterable<
SpeechWordInfo> ? speechWordInfo, - Duration? speechEndOffset,
Implementation
factory StreamingRecognitionResult({
StreamingRecognitionResult_MessageType? messageType,
$core.String? transcript,
$core.bool? isFinal,
$core.double? confidence,
$core.Iterable<$19.SpeechWordInfo>? speechWordInfo,
$17.Duration? speechEndOffset,
}) {
final _result = create();
if (messageType != null) {
_result.messageType = messageType;
}
if (transcript != null) {
_result.transcript = transcript;
}
if (isFinal != null) {
_result.isFinal = isFinal;
}
if (confidence != null) {
_result.confidence = confidence;
}
if (speechWordInfo != null) {
_result.speechWordInfo.addAll(speechWordInfo);
}
if (speechEndOffset != null) {
_result.speechEndOffset = speechEndOffset;
}
return _result;
}