RealtimeAudioConfigOutput class
Output audio configuration for a Realtime session.
- Annotations
-
- @immutable
Constructors
- RealtimeAudioConfigOutput({RealtimeAudioFormats? format, String? voice, double? speed})
-
Creates a RealtimeAudioConfigOutput.
const
-
RealtimeAudioConfigOutput.fromJson(Map<
String, dynamic> json) -
Creates from JSON.
factory
Properties
- format → RealtimeAudioFormats?
-
Output audio format.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double?
-
Speech speed multiplier (0.25–1.5; default
1.0).final - voice → String?
-
Voice identifier or custom voice name (e.g.
'alloy','cedar').final
Methods
-
copyWith(
{Object? format = unsetCopyWithValue, Object? voice = unsetCopyWithValue, Object? speed = unsetCopyWithValue}) → RealtimeAudioConfigOutput -
Returns a copy of this RealtimeAudioConfigOutput with the given fields
replaced. Pass
nullfor 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