Struct groq_api_rust::SpeechToTextRequest
source · pub struct SpeechToTextRequest {
pub file: Vec<u8>,
pub model: Option<String>,
pub temperature: Option<f64>,
pub language: Option<String>,
pub english_text: bool,
pub prompt: Option<String>,
pub response_format: Option<String>,
}
Fields§
§file: Vec<u8>
§model: Option<String>
§temperature: Option<f64>
§language: Option<String>
§english_text: bool
§prompt: Option<String>
§response_format: Option<String>
Implementations§
source§impl SpeechToTextRequest
impl SpeechToTextRequest
pub fn new(file: Vec<u8>) -> Self
pub fn temperature(self, temperature: f64) -> Self
pub fn language(self, language: &str) -> Self
pub fn english_text(self, english_text: bool) -> Self
pub fn model(self, model: &str) -> Self
pub fn prompt(self, prompt: &str) -> Self
pub fn response_format(self, response_format: &str) -> Self
Trait Implementations§
source§impl Clone for SpeechToTextRequest
impl Clone for SpeechToTextRequest
source§fn clone(&self) -> SpeechToTextRequest
fn clone(&self) -> SpeechToTextRequest
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 SpeechToTextRequest
impl RefUnwindSafe for SpeechToTextRequest
impl Send for SpeechToTextRequest
impl Sync for SpeechToTextRequest
impl Unpin for SpeechToTextRequest
impl UnwindSafe for SpeechToTextRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)