Item class final
A word, phrase, or punctuation mark in your transcription output, along with various associated attributes, such as confidence score, type, and start and end times.
Constructors
- Item({num? startTime, num? endTime, ItemType? type, String? content, bool? vocabularyFilterMatch, String? speaker, double? confidence, bool? stable})
-
Creates an Item from the given values.
const
- Item.fromJson(String source)
-
Creates an Item from the given JSON string.
factory
-
Item.fromMap(Map<
String, dynamic> map) -
Creates an Item from the given Map.
factory
Properties
- confidence → double?
-
The confidence score associated with a word or phrase in your transcript.
final
- content → String?
-
The word or punctuation that was transcribed.
final
- endTime → num?
-
The end time, in milliseconds, of the transcribed item.
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?
-
If speaker partitioning is enabled, speaker labels the speaker of
the specified item.
final
- stable → bool?
-
If partial result stabilization is enabled, stable indicates whether
the specified item is stable (
true
) or if it may change when the segment is complete (false
).final - startTime → num?
-
The start time, in milliseconds, of the transcribed item.
final
- type → ItemType?
-
The type of item identified. Options are:
PRONUNCIATION
(spoken words) andPUNCTUATION
.final - vocabularyFilterMatch → bool?
-
Indicates whether the specified item matches a word in the vocabulary
filter included in your request.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Returns the JSON string representation of this Item.
-
toMap(
) → Map< String, dynamic> - Returns the Map representation of this Item.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited