pub struct InputAudioTranscription {
pub model: Option<TranscriptionModel>,
pub language: Option<String>,
pub prompt: Option<String>,
}Expand description
Input audio transcription configuration.
Fields§
§model: Option<TranscriptionModel>The transcription model to use.
language: Option<String>Language hint for transcription (ISO-639-1 code).
prompt: Option<String>Optional prompt to guide transcription.
Implementations§
Source§impl InputAudioTranscription
impl InputAudioTranscription
Sourcepub fn new(model: TranscriptionModel) -> Self
pub fn new(model: TranscriptionModel) -> Self
Create a new transcription configuration with the specified model.
Sourcepub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
Set the language hint.
Sourcepub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
Set the transcription prompt.
Trait Implementations§
Source§impl Clone for InputAudioTranscription
impl Clone for InputAudioTranscription
Source§fn clone(&self) -> InputAudioTranscription
fn clone(&self) -> InputAudioTranscription
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 InputAudioTranscription
impl Debug for InputAudioTranscription
Source§impl Default for InputAudioTranscription
impl Default for InputAudioTranscription
Source§fn default() -> InputAudioTranscription
fn default() -> InputAudioTranscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputAudioTranscription
impl<'de> Deserialize<'de> for InputAudioTranscription
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
Auto Trait Implementations§
impl Freeze for InputAudioTranscription
impl RefUnwindSafe for InputAudioTranscription
impl Send for InputAudioTranscription
impl Sync for InputAudioTranscription
impl Unpin for InputAudioTranscription
impl UnsafeUnpin for InputAudioTranscription
impl UnwindSafe for InputAudioTranscription
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