RealtimeTranslationInputTranscription class

Optional source-language transcription for a translation session.

When configured, the server emits session.input_transcript.delta events. Translation itself still runs from the input audio stream regardless.

Annotations
  • @immutable

Constructors

RealtimeTranslationInputTranscription({required String model})
Creates a RealtimeTranslationInputTranscription.
const
RealtimeTranslationInputTranscription.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
model String
Transcription model id (e.g. 'gpt-realtime-whisper').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? model}) RealtimeTranslationInputTranscription
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

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