VoiceSession class
A live speech-to-speech conversation.
Properties
-
events
→ Stream<
VoiceEvent> -
Everything the session observes: transcripts, state changes, and errors.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Release the microphone, the pipeline, and the event stream.
-
interrupt(
) → Future< void> - Stop the agent mid-utterance. Awaitable: resolves once the interrupted response, its tools, and its playout have all settled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
say(
String text) → SpeechHandle -
Speak
textnow, outside the turn loop, returning immediately with a handle to the in-flight utterance. -
start(
) → Future< void> - Open the microphone and begin the turn loop.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited