pub struct CreateTranscriptionResponseVerboseJson {
pub language: String,
pub duration: Number,
pub text: String,
pub words: Option<Vec<TranscriptionWord>>,
pub segments: Option<Vec<TranscriptionSegment>>,
pub usage: Option<TranscriptTextUsageDuration>,
}
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: Number
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.
usage: Option<TranscriptTextUsageDuration>
Implementations§
Source§impl CreateTranscriptionResponseVerboseJson
impl CreateTranscriptionResponseVerboseJson
Sourcepub fn builder() -> CreateTranscriptionResponseVerboseJsonBuilder<((), (), (), (), (), ())>
pub fn builder() -> CreateTranscriptionResponseVerboseJsonBuilder<((), (), (), (), (), ())>
Create a builder for building CreateTranscriptionResponseVerboseJson
.
On the builder, call .language(...)
, .duration(...)
, .text(...)
, .words(...)
(optional), .segments(...)
(optional), .usage(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateTranscriptionResponseVerboseJson
.
Trait Implementations§
Source§impl Clone for CreateTranscriptionResponseVerboseJson
impl Clone for CreateTranscriptionResponseVerboseJson
Source§fn clone(&self) -> CreateTranscriptionResponseVerboseJson
fn clone(&self) -> CreateTranscriptionResponseVerboseJson
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Source§impl PartialEq for CreateTranscriptionResponseVerboseJson
impl PartialEq for CreateTranscriptionResponseVerboseJson
Source§fn eq(&self, other: &CreateTranscriptionResponseVerboseJson) -> bool
fn eq(&self, other: &CreateTranscriptionResponseVerboseJson) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateTranscriptionResponseVerboseJson
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