RealtimeTranslationOutputAudioDeltaEvent class

Translated output-audio delta (200 ms PCM16 frames).

delta is a base64-encoded server-emitted audio fragment. This is not a request-factory base64 input, so the OpenAI-specific data-URL convention does not apply here.

Inheritance
Annotations
  • @immutable

Constructors

RealtimeTranslationOutputAudioDeltaEvent({required String eventId, required String delta, String? format, int? sampleRate, int? channels, int? elapsedMs})
Creates a RealtimeTranslationOutputAudioDeltaEvent.
const
RealtimeTranslationOutputAudioDeltaEvent.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

channels int?
Number of audio channels. Defaults to 1.
final
delta String
Base64-encoded translated audio data (server-emitted PCM16).
final
elapsedMs int?
Optional alignment-frame timing.
final
eventId String
The server-generated event id.
final
format String?
Audio encoding for delta. Currently always 'pcm16'.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int?
Sample rate of the audio delta. Defaults to 24000.
final
type String
The discriminator value.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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