VoiceReplyAudioEvent class
Synthesized reply audio: 16-bit LE mono PCM at sampleRate.
One-shot mode (default) emits exactly one event with isFinal: true — the
whole reply. Streaming mode (VoiceSession(streamAudio: true)) emits the
reply as several isFinal: false chunks followed by a single zero-byte
isFinal: true marker. A successful NON-EMPTY turn ends with exactly one
isFinal: true (an empty-reply turn is successful but emits no audio at
all); an errored or interrupted turn emits no isFinal: true — though an
interrupted streaming turn may already have emitted isFinal: false chunks.
- Inheritance
-
- Object
- VoiceEvent
- VoiceReplyAudioEvent
Constructors
- VoiceReplyAudioEvent(Uint8List pcm, {required int sampleRate, required bool isFinal})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinal → bool
-
final
- pcm → Uint8List
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited