TranscriptionSegment class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

TranscriptionSegment({required int id, required double end, required double start, required String text, required int seek, required double temperature, required double avgLogprob, required double compressionRatio, required double no_speechProb, required List<int> tokens})
TranscriptionSegment.fromJson(Map<String, dynamic> json)
factory

Properties

avgLogprob double
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
getter/setter pair
compressionRatio double
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
getter/setter pair
end double
End time of the segment in seconds.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
Unique identifier of the segment.
getter/setter pair
no_speechProb double
Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seek int
Seek offset of the segment.
getter/setter pair
start double
Start time of the segment in seconds.
getter/setter pair
temperature double
Temperature parameter used for generating the segment.
getter/setter pair
text String
Text content of the segment.
getter/setter pair
tokens List<int>
Array of token IDs for the text content.
getter/setter pair

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.
override

Operators

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