pub struct CreateTranscriptionResponseVerboseJson {
pub language: String,
pub duration: f32,
pub text: String,
pub words: Option<Vec<TranscriptionWord>>,
pub segments: Option<Vec<TranscriptionSegment>>,
}
Expand description
Represents a verbose json transcription response returned by model, based on the provided input.
Fields§
§language: String
The language of the input audio.
duration: f32
The duration of the input audio.
text: String
The transcribed text.
words: Option<Vec<TranscriptionWord>>
Extracted words and their corresponding timestamps.
segments: Option<Vec<TranscriptionSegment>>
Segments of the transcribed text and their corresponding details.
Trait Implementations§
Source§impl Clone for CreateTranscriptionResponseVerboseJson
impl Clone for CreateTranscriptionResponseVerboseJson
Source§fn clone(&self) -> CreateTranscriptionResponseVerboseJson
fn clone(&self) -> CreateTranscriptionResponseVerboseJson
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 moreSource§impl<'de> Deserialize<'de> for CreateTranscriptionResponseVerboseJson
impl<'de> Deserialize<'de> for CreateTranscriptionResponseVerboseJson
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 CreateTranscriptionResponseVerboseJson
impl RefUnwindSafe for CreateTranscriptionResponseVerboseJson
impl Send for CreateTranscriptionResponseVerboseJson
impl Sync for CreateTranscriptionResponseVerboseJson
impl Unpin for CreateTranscriptionResponseVerboseJson
impl UnwindSafe for CreateTranscriptionResponseVerboseJson
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