RealtimeModel class abstract

Implementers

Constructors

RealtimeModel.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
isAiSpeaking bool
no setter
isConnected bool
no setter
isUserSpeaking bool
no setter
onAiAudio Stream<Uint8List>
If streamAiAudioAsText is set to true, this stream won't emit any data.
no setter
onAiSpeechBegin Stream<void>
no setter
onAiSpeechEnd Stream<void>
no setter
onAiText Stream<String>
Stream of AI text. This should not output any object that is encoded as a json or other format.
no setter
onAiTextEnd Stream<void>
no setter
onConnectionClose Stream<void>
no setter
onConnectionOpen Stream<void>
no setter
onError Stream<Exception>
no setter
onRawAiAudio Stream<String>
Stream of raw AI audio as a base 64 encoded string.
no setter
onRemaingTimeUpdated Stream<Duration>
no setter
onRemainingRequestsUpdated Stream<int>
no setter
onUserSpeechBegin Stream<void>
no setter
onUserSpeechEnd Stream<void>
no setter
onUserText Stream<String>
Stream of user text. This should not output any object that is encoded as a json or other format.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamAiAudioAsText bool
no setter
uri Uri?
no setter

Methods

close() → void
commitUserAudio() → void
This is only required if the server does not support silence detection or it is not enabled.
getSessionToken() Future<String?>
getSocketHeaders(Map<String, dynamic> baseHeaders) Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void
sendUserAudio(Uint8List audioData) → void
Sends a audio chunk to the server.
stopAiSpeech() → void
toString() String
A string representation of this object.
inherited

Operators

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