RealtimeTranscriptionSessionCreateResponse class
Response from creating a realtime transcription session via HTTP.
Contains the session configuration and an ephemeral client secret for authenticating WebSocket connections.
- Annotations
-
- @immutable
Constructors
-
RealtimeTranscriptionSessionCreateResponse({required ClientSecret clientSecret, List<
String> ? modalities, RealtimeAudioFormat? inputAudioFormat, InputAudioTranscription? inputAudioTranscription, TurnDetection? turnDetection, NoiseReductionConfig? inputAudioNoiseReduction}) -
Creates a RealtimeTranscriptionSessionCreateResponse.
const
-
RealtimeTranscriptionSessionCreateResponse.fromJson(Map<
String, dynamic> json) -
Creates a RealtimeTranscriptionSessionCreateResponse from JSON.
factory
Properties
- clientSecret → ClientSecret
-
The ephemeral client secret for WebSocket authentication.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- inputAudioFormat → RealtimeAudioFormat?
-
Input audio format.
final
- inputAudioNoiseReduction → NoiseReductionConfig?
-
Input audio noise reduction configuration.
final
- inputAudioTranscription → InputAudioTranscription?
-
Configuration for input audio transcription.
final
-
modalities
→ List<
String> ? -
The modalities enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- turnDetection → TurnDetection?
-
Turn detection configuration.
final
Methods
-
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