RealtimeTranscriptionSessionCreateResponse class
Response from creating a Realtime transcription session.
Note: the response does not include client_secret on the inner session
object; callers must read the secret from the wrapper response of the
/realtime/client_secrets endpoint.
- Annotations
-
- @immutable
Constructors
-
RealtimeTranscriptionSessionCreateResponse({required String id, required String object, required String type, required int expiresAt, RealtimeTranscriptionSessionAudio? audio, List<
String> ? include}) -
Creates a RealtimeTranscriptionSessionCreateResponse.
const
-
RealtimeTranscriptionSessionCreateResponse.fromJson(Map<
String, dynamic> json) -
Creates a RealtimeTranscriptionSessionCreateResponse from JSON.
factory
Properties
- audio → RealtimeTranscriptionSessionAudio?
-
Audio configuration.
final
- expiresAt → int
-
Expiration timestamp (Unix epoch seconds).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
The session identifier (
sess_…).final -
include
→ List<
String> ? -
Fields included in server outputs.
final
- object → String
-
The object type (
'realtime.transcription_session').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The session type (always
'transcription').final
Methods
-
copyWith(
{String? id, String? object, String? type, int? expiresAt, Object? audio = unsetCopyWithValue, Object? include = unsetCopyWithValue}) → RealtimeTranscriptionSessionCreateResponse - 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