pub struct RealtimeSessionCreateResponseInputAudioTranscription {
pub model: Option<String>,
}
Expand description
Configuration for input audio transcription, defaults to off and can be
set to null
to turn off once on. Input audio transcription is not native
to the model, since the model consumes audio directly. Transcription runs
asynchronously through Whisper and should be treated as rough guidance
rather than the representation understood by the model.
Fields§
§model: Option<String>
The model to use for transcription, whisper-1
is the only currently
supported model.
Implementations§
Source§impl RealtimeSessionCreateResponseInputAudioTranscription
impl RealtimeSessionCreateResponseInputAudioTranscription
Sourcepub fn builder() -> RealtimeSessionCreateResponseInputAudioTranscriptionBuilder<((),)>
pub fn builder() -> RealtimeSessionCreateResponseInputAudioTranscriptionBuilder<((),)>
Create a builder for building RealtimeSessionCreateResponseInputAudioTranscription
.
On the builder, call .model(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeSessionCreateResponseInputAudioTranscription
.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateResponseInputAudioTranscription
impl Clone for RealtimeSessionCreateResponseInputAudioTranscription
Source§fn clone(&self) -> RealtimeSessionCreateResponseInputAudioTranscription
fn clone(&self) -> RealtimeSessionCreateResponseInputAudioTranscription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for RealtimeSessionCreateResponseInputAudioTranscription
impl Default for RealtimeSessionCreateResponseInputAudioTranscription
Source§fn default() -> RealtimeSessionCreateResponseInputAudioTranscription
fn default() -> RealtimeSessionCreateResponseInputAudioTranscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseInputAudioTranscription
impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseInputAudioTranscription
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RealtimeSessionCreateResponseInputAudioTranscription
impl PartialEq for RealtimeSessionCreateResponseInputAudioTranscription
Source§fn eq(
&self,
other: &RealtimeSessionCreateResponseInputAudioTranscription,
) -> bool
fn eq( &self, other: &RealtimeSessionCreateResponseInputAudioTranscription, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeSessionCreateResponseInputAudioTranscription
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateResponseInputAudioTranscription
impl RefUnwindSafe for RealtimeSessionCreateResponseInputAudioTranscription
impl Send for RealtimeSessionCreateResponseInputAudioTranscription
impl Sync for RealtimeSessionCreateResponseInputAudioTranscription
impl Unpin for RealtimeSessionCreateResponseInputAudioTranscription
impl UnwindSafe for RealtimeSessionCreateResponseInputAudioTranscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more