InputAudioTranscription class

Configuration for input audio transcription.

Transcription runs asynchronously through the Whisper or GPT-realtime transcription pipeline and is treated as guidance about the input audio content rather than precisely what the model heard.

Annotations
  • @immutable

Constructors

InputAudioTranscription({AudioTranscriptionDelay? delay, String? language, String? model, String? prompt})
Creates an InputAudioTranscription.
const
InputAudioTranscription.fromJson(Map<String, dynamic> json)
Creates from JSON.
factory

Properties

delay AudioTranscriptionDelay?
Optional delay knob.
final
hashCode int
The hash code for this object.
no setteroverride
language String?
ISO-639-1 language hint, e.g. 'en'.
final
model String?
Transcription model identifier (e.g. 'whisper-1', 'gpt-realtime-whisper').
final
prompt String?
Optional free-text prompt to guide the transcription.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Object? delay = unsetCopyWithValue, Object? language = unsetCopyWithValue, Object? model = unsetCopyWithValue, Object? prompt = unsetCopyWithValue}) InputAudioTranscription
Returns a copy of this InputAudioTranscription 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