VoiceSession class
Voice session state tracking (for internal use)
Constructors
-
VoiceSession({required String id, required VoiceSessionConfig configuration, VoiceSessionState state = VoiceSessionState.idle, List<
STTOutput> ? transcripts, DateTime? startTime, DateTime? endTime})
Properties
- configuration → VoiceSessionConfig
-
Session configuration
final
- duration → Duration?
-
Calculate the session duration
no setter
- endTime ↔ DateTime?
-
When the session ended
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique session identifier
final
- isActive → bool
-
Check if the session is active
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime ↔ DateTime?
-
When the session started
getter/setter pair
- state ↔ VoiceSessionState
-
Current session state
getter/setter pair
-
transcripts
→ List<
STTOutput> -
Transcripts collected during this session
final
Methods
-
copyWith(
{String? id, VoiceSessionConfig? configuration, VoiceSessionState? state, List< STTOutput> ? transcripts, DateTime? startTime, DateTime? endTime}) → VoiceSession - Create a copy with modified values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited