pub struct TranslateOptions {
pub model: Option<SttModel>,
pub prompt: Option<String>,
pub response_format: Option<TranscriptionFormat>,
pub temperature: Option<f32>,
}Expand description
Options for audio translation.
Fields§
§model: Option<SttModel>The model to use (only whisper-1 is supported)
prompt: Option<String>Optional prompt to guide the model’s style
response_format: Option<TranscriptionFormat>Response format (defaults to json)
temperature: Option<f32>Temperature for sampling (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for TranslateOptions
impl Clone for TranslateOptions
Source§impl Debug for TranslateOptions
impl Debug for TranslateOptions
Auto Trait Implementations§
impl Freeze for TranslateOptions
impl RefUnwindSafe for TranslateOptions
impl Send for TranslateOptions
impl Sync for TranslateOptions
impl Unpin for TranslateOptions
impl UnsafeUnpin for TranslateOptions
impl UnwindSafe for TranslateOptions
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