RealtimeAudioConfig class

Audio configuration for a Realtime session.

Groups input audio settings (format, transcription, turn_detection, noise_reduction) and output audio settings (format, voice, speed) under a single nested object on the session payload.

Annotations
  • @immutable

Constructors

RealtimeAudioConfig({RealtimeAudioConfigInput? input, RealtimeAudioConfigOutput? output})
Creates a RealtimeAudioConfig.
const
RealtimeAudioConfig.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
input RealtimeAudioConfigInput?
Input audio configuration.
final
output RealtimeAudioConfigOutput?
Output audio configuration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Object? input = unsetCopyWithValue, Object? output = unsetCopyWithValue}) RealtimeAudioConfig
Returns a copy of this RealtimeAudioConfig with the given fields replaced. Pass null for any field to clear the existing value.
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