RealtimeModel class abstract

Implementers

Constructors

RealtimeModel.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
initialMessages List<Message>?
no setter
isAiSpeaking bool
no setter
isConnected bool
no setter
isSendingInitialMessages bool
no setter
isUserSpeaking bool
no setter
onConnectionClose Stream<void>
no setter
onConnectionOpen Stream<void>
no setter
onConversationItemCreated Stream<Map<String, dynamic>>
no setter
onError Stream<Exception>
no setter
onIsSendingInitialMessages Stream<bool>
no setter
onRemaingTimeUpdated Stream<Duration>
no setter
onRemainingRequestsUpdated Stream<int>
no setter
onRemainingTokensUpdated Stream<int>
no setter
onResponse Stream<RealtimeResponse>
no setter
onSocketData Stream<Map<String, dynamic>>
no setter
onSpeech Stream<SpeechItem>
no setter
onSpeechEnd Stream<SpeechEnd>
no setter
onSpeechStart Stream<SpeechStart>
no setter
onTranscriptionEnd Stream<TranscriptionEnd>
no setter
onTranscriptionItem Stream<TranscriptionItem>
no setter
onTranscriptionStart Stream<TranscriptionStart>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentInitialMessages Iterable<Message>
no setter
uri Uri?
The URL of the server.
no setter

Methods

close() → void
commitUserAudio() → void
This is only required if the server does not support silence detection or it is not enabled.
getSocketHeaders(Map<String, dynamic> baseHeaders) Map<String, dynamic>
Returns the headers to be sent with the socket connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void
sendMessage(Map<String, dynamic> map) → 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