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
onConnectionClose Stream<void>
no setter
onConnectionOpen Stream<void>
no setter
onError Stream<Exception>
no setter
onRemaingTimeUpdated Stream<Duration>
no setter
onRemainingRequestsUpdated Stream<int>
no setter
onRemainingTokensUpdated Stream<int>
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
onUsage Stream<Usage>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
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