pub struct AudioTranscription {
pub language: Option<String>,
pub model: Option<String>,
pub prompt: Option<String>,
}Fields§
§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.
model: Option<String>The model to use for transcription. Current options are whisper-1,
gpt-4o-mini-transcribe, gpt-4o-transcribe, and gpt-4o-transcribe-diarize.
Use gpt-4o-transcribe-diarize when you need diarization with speaker labels.
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
(excluding gpt-4o-transcribe-diarize), the prompt is a free text string, for example
“expect words related to technology”.
Trait Implementations§
Source§impl Clone for AudioTranscription
impl Clone for AudioTranscription
Source§fn clone(&self) -> AudioTranscription
fn clone(&self) -> AudioTranscription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioTranscription
impl Debug for AudioTranscription
Source§impl Default for AudioTranscription
impl Default for AudioTranscription
Source§fn default() -> AudioTranscription
fn default() -> AudioTranscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioTranscription
impl<'de> Deserialize<'de> for AudioTranscription
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioTranscription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioTranscription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AudioTranscription
impl Serialize for AudioTranscription
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AudioTranscription
impl RefUnwindSafe for AudioTranscription
impl Send for AudioTranscription
impl Sync for AudioTranscription
impl Unpin for AudioTranscription
impl UnsafeUnpin for AudioTranscription
impl UnwindSafe for AudioTranscription
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