pub struct RealtimeTranscriptionSessionCreateRequestInputAudioTranscription {
pub model: Option<RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel>,
pub language: Option<String>,
pub prompt: Option<String>,
}
Expand description
Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
Fields§
§model: Option<RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel>
The model to use for transcription, current options are gpt-4o-transcribe
, gpt-4o-mini-transcribe
, and whisper-1
.
language: Option<String>
The language of the input audio. Supplying the input language in
ISO-639-1 (e.g. en
) format
will improve accuracy and latency.
prompt: Option<String>
An optional text to guide the model’s style or continue a previous audio
segment.
For whisper-1
, the prompt is a list of keywords.
For gpt-4o-transcribe
models, the prompt is a free text string, for example “expect words related to technology”.
Implementations§
Source§impl RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
impl RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Sourcepub fn builder() -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionBuilder<((), (), ())>
pub fn builder() -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionBuilder<((), (), ())>
Create a builder for building RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
.
On the builder, call .model(...)
(optional), .language(...)
(optional), .prompt(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
.
Trait Implementations§
Source§impl Clone for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
impl Clone for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Source§fn clone(
&self,
) -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
fn clone( &self, ) -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
impl Default for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Source§fn default() -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
fn default() -> RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Source§impl<'de> Deserialize<'de> for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
impl<'de> Deserialize<'de> for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
impl PartialEq for RealtimeTranscriptionSessionCreateRequestInputAudioTranscription
Source§fn eq(
&self,
other: &RealtimeTranscriptionSessionCreateRequestInputAudioTranscription,
) -> bool
fn eq( &self, other: &RealtimeTranscriptionSessionCreateRequestInputAudioTranscription, ) -> bool
self
and other
values to be equal, and is used by ==
.