SttResponseData class

Data class representing the response from the speech-to-text service.

This class contains all the information returned by the Reverie STT API, including transcription text, confidence scores, and metadata.

Constructors

SttResponseData({String? id, bool? success, bool? finalResult, String? text, String? cause, double? confidence, String? displayText})
Creates a new SttResponseData instance.
SttResponseData.fromJson(Map<String, dynamic> json)
Creates an SttResponseData instance from a JSON map.
factory

Properties

cause → String?
Error cause if the transcription failed.
final
confidence → double?
Confidence score of the transcription (0.0 to 1.0). Higher values indicate more confident results.
final
displayText → String?
Formatted display text that may include punctuation and capitalization.
final
finalResult → bool?
Whether this is the final result or an intermediate result. Final results are typically more accurate.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Unique identifier for this transcription result.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool?
Whether the transcription was successful.
final
text → String?
The transcribed text from the audio input.
final
transcript → String?
Convenience getter for the transcribed text.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this SttResponseData instance to a JSON map.
toString() → String
Returns a string representation of this SttResponseData instance.
override

Operators

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