SpeechToTextResponse class
Represents a speech-to-text response.
This is an experimental feature.
Constructors
-
SpeechToTextResponse({List<
AIContent> ? contents, Duration? startTime, Duration? endTime, String? responseId, String? modelId, Object? rawRepresentation, AdditionalPropertiesDictionary? additionalProperties, UsageDetails? usage}) - Creates a new SpeechToTextResponse.
- SpeechToTextResponse.fromText(String text)
- Creates a response 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
- modelId ↔ String?
-
The model that generated this response.
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