STTOutput constructor
STTOutput({
- String? text,
- double? confidence,
- Iterable<
WordTimestamp> ? words, - Iterable<
TranscriptionAlternative> ? alternatives, - TranscriptionMetadata? metadata,
- Int64? timestampMs,
- Int64? durationMs,
- int? segmentIndex,
- String? language,
- SDKError? error,
Implementation
factory STTOutput({
$core.String? text,
$core.double? confidence,
$core.Iterable<WordTimestamp>? words,
$core.Iterable<TranscriptionAlternative>? alternatives,
TranscriptionMetadata? metadata,
$fixnum.Int64? timestampMs,
$fixnum.Int64? durationMs,
$core.int? segmentIndex,
$core.String? language,
$0.SDKError? error,
}) {
final result = create();
if (text != null) result.text = text;
if (confidence != null) result.confidence = confidence;
if (words != null) result.words.addAll(words);
if (alternatives != null) result.alternatives.addAll(alternatives);
if (metadata != null) result.metadata = metadata;
if (timestampMs != null) result.timestampMs = timestampMs;
if (durationMs != null) result.durationMs = durationMs;
if (segmentIndex != null) result.segmentIndex = segmentIndex;
if (language != null) result.language = language;
if (error != null) result.error = error;
return result;
}