Class ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription
-
- All Implemented Interfaces:
public final class ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription
Configuration of the transcription model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Builder
A builder for Transcription.
public final class
ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Model
The model to use for transcription. Can be
gpt-4o-transcribe
,gpt-4o-mini-transcribe
, orwhisper-1
.
-
Method Summary
-
-
Method Detail
-
language
final Optional<String> language()
The language of the input audio. Supplying the input language in ISO-639-1 (e.g.
en
) format will improve accuracy and latency.
-
model
final Optional<ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Model> model()
The model to use for transcription. Can be
gpt-4o-transcribe
,gpt-4o-mini-transcribe
, orwhisper-1
.
-
prompt
final Optional<String> prompt()
An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
-
_language
final JsonField<String> _language()
Returns the raw JSON value of language.
Unlike language, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_prompt
final JsonField<String> _prompt()
Returns the raw JSON value of prompt.
Unlike prompt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Builder toBuilder()
-
validate
final ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription validate()
-
builder
final static ClientSecretCreateResponse.Session.RealtimeTranscriptionSessionCreateResponse.Audio.Input.Transcription.Builder builder()
Returns a mutable builder for constructing an instance of Transcription.
-
-
-
-