VoiceSessionHandle class

Handle to control an active voice session Matches iOS VoiceSessionHandle from RunAnywhere+VoiceSession.swift

Constructors

VoiceSessionHandle({VoiceSessionConfig? config, Future<VoiceAgentProcessResult> processAudioCallback(Uint8List audioData)?, @Deprecated('Permission is now handled internally by AudioCaptureManager') Future<bool> requestPermissionCallback()?, Future<bool> isVoiceAgentReadyCallback()?, Future<void> initializeVoiceAgentCallback()?})

Properties

config VoiceSessionConfig
final
events Stream<VoiceSessionEvent>
Stream of session events Matches iOS VoiceSessionHandle.events
no setter
hashCode int
The hash code for this object.
no setterinherited
isProcessing bool
Whether the session is currently processing audio or playing TTS
no setter
isRunning bool
Whether the session is currently running
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Dispose resources
feedAudio(Uint8List data, double audioLevel) → void
Feed audio data to the session (for external audio sources) Can be used for custom audio capture or testing
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendNow() Future<void>
Force process current audio (push-to-talk) Matches iOS VoiceSessionHandle.sendNow()
start() Future<void>
Start the voice session Matches iOS VoiceSessionHandle.start()
stop() → void
Stop the voice session Matches iOS VoiceSessionHandle.stop()
toString() String
A string representation of this object.
inherited

Operators

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