pub struct CreateTranslationRequest {
pub file: String,
pub model: CreateTranslationRequest_Model,
pub prompt: Option<String>,
pub response_format: Option<String>,
pub temperature: Option<f64>,
}
Fields§
§file: String
The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
model: CreateTranslationRequest_Model
§prompt: Option<String>
An optional text to guide the model’s style or continue a previous audio segment.
response_format: Option<String>
The format of the output, in one of these options: json
, text
,
srt
, verbose_json
, or vtt
.
temperature: Option<f64>
The sampling temperature, between 0 and 1.
Trait Implementations§
Source§impl Clone for CreateTranslationRequest
impl Clone for CreateTranslationRequest
Source§fn clone(&self) -> CreateTranslationRequest
fn clone(&self) -> CreateTranslationRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CreateTranslationRequest
impl RefUnwindSafe for CreateTranslationRequest
impl Send for CreateTranslationRequest
impl Sync for CreateTranslationRequest
impl Unpin for CreateTranslationRequest
impl UnwindSafe for CreateTranslationRequest
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