RealtimeTranslationSessionCreateRequest class
Request payload for creating a translation session.
Streams source audio in and translated audio plus transcript deltas out continuously.
- Annotations
-
- @immutable
Constructors
- RealtimeTranslationSessionCreateRequest({required String model, RealtimeTranslationSessionAudio? audio})
-
Creates a RealtimeTranslationSessionCreateRequest.
const
-
RealtimeTranslationSessionCreateRequest.fromJson(Map<
String, dynamic> json) -
Creates from JSON.
factory
Properties
- audio → RealtimeTranslationSessionAudio?
-
Optional audio configuration.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- model → String
-
The translation model id (e.g.
'gpt-realtime-translate').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? model, Object? audio = unsetCopyWithValue}) → RealtimeTranslationSessionCreateRequest - 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