pub struct SpeechToTextRequest {
pub model: String,
pub audio_data: Vec<u8>,
pub format: AudioFormat,
pub language: Option<String>,
pub options: Option<Value>,
}Expand description
Request structure for speech-to-text conversion
Fields§
§model: StringModel name to use for speech recognition (e.g., “whisper”)
audio_data: Vec<u8>Raw audio data bytes
format: AudioFormatAudio format specification
language: Option<String>Optional language hint for recognition (ISO 639-1 code)
options: Option<Value>Additional model-specific options
Trait Implementations§
Source§impl Clone for SpeechToTextRequest
impl Clone for SpeechToTextRequest
Source§fn clone(&self) -> SpeechToTextRequest
fn clone(&self) -> SpeechToTextRequest
Returns a duplicate 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 moreSource§impl Debug for SpeechToTextRequest
impl Debug for SpeechToTextRequest
Source§impl<'de> Deserialize<'de> for SpeechToTextRequest
impl<'de> Deserialize<'de> for SpeechToTextRequest
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 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