SpeechAnnotation class

Speech annotation for text content indicating speaker and style segment boundaries.

Annotations
  • @JsonSerializable.new(includeIfNull: false, fieldRename: FieldRename.snake)

Constructors

SpeechAnnotation({int? startIndex, int? endIndex, String? speaker, String? style, String type = 'speech_metadata'})
SpeechAnnotation.fromJson(Map<String, dynamic> json)
factory

Properties

endIndex → int?
End of the attributed segment, exclusive, measured in bytes.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speaker → String?
The speaker to associate with this turn.
final
startIndex → int?
Start of segment of the response that is attributed to this source, measured in bytes.
final
style → String?
Style instruction for the speech synthesis.
final
type → String
Fixed type discriminator, defaults to "speech_metadata".
final

Methods

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

Operators

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