SpeechToTextResponseUpdate class

Represents a streaming update from a speech-to-text operation.

This is an experimental feature.

Constructors

SpeechToTextResponseUpdate({required SpeechToTextResponseUpdateKind kind, List<AIContent>? contents, Duration? startTime, Duration? endTime, String? responseId, String? modelId, Object? rawRepresentation, AdditionalPropertiesDictionary? additionalProperties, UsageDetails? usage})
Creates a new SpeechToTextResponseUpdate.
SpeechToTextResponseUpdate.fromText(SpeechToTextResponseUpdateKind kind, String text)
Creates an update from a text string.

Properties

additionalProperties AdditionalPropertiesDictionary?
Additional properties.
getter/setter pair
contents List<AIContent>
The content items.
final
endTime Duration?
The end time of the speech segment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind SpeechToTextResponseUpdateKind
The kind of update.
final
modelId String?
The model that generated this update.
getter/setter pair
rawRepresentation Object?
The underlying implementation-specific object.
getter/setter pair
responseId String?
A unique response identifier.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime Duration?
The start time of the speech segment.
getter/setter pair
text String
Gets concatenated text from all TextContent items.
no setter
usage UsageDetails?
Usage details.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited